Bonjour à tous,
j'ai un problème dans la camera sous android j'ai un boutton prendre photo malgré que j'ai ajouté la permission
dans le fichier manifest ça marche pas chez moi la cam et me donne camera has stopped voila mon activity:Code:<uses-permission android:name="android.permission.CAMERA"/>
svp aidé moi pour trouver l'erreurCode:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 public class Etape1Activity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button b1 = (Button) findViewById(R.id.button1); b1.setOnClickListener(new View.OnClickListener() { public void onClick(View viewParam) { Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivity(camera); } }); } }
merci .