MEDIA_TYPE_IMAGE nicht erkannt

Ich habe Probleme mit der Ressource für Android-Entwickler für die Kamera. Hier ist mein Code:

// create Intent to take a picture and return control to the calling application
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE);

// create a file to save the image
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image file name
// start the image capture Intent
startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);

Das Problem ist 'MEDIA_TYPE_IMAGE', das besagt, dass es nicht in eine Variable aufgelöst werden kann. Ich habe Mediastore, Kamera und URI in mein Projekt importiert. Danke im Voraus!

Antworten auf die Frage(4)

Ihre Antwort auf die Frage