मैं कैमरे के लिए एंड्रॉयड डेवलपर्स पर संसाधन में परेशानी आ रही है, यहाँ मेरी कोड है:MEDIA_TYPE_IMAGE मान्यता प्राप्त नहीं
// 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);
समस्या 'MEDIA_TYPE_IMAGE' जो कहना है कि यह एक चर को हल नहीं किया जा सकता है । मुझे अपनी परियोजना में मध्यस्थ, कैमरा और यूआरआई आयात किया गया। अग्रिम में धन्यवाद!
मुझे यह जवाब तब तक समझ में नहीं आया जब तक मुझे यह कोड यहां नहीं मिला: http://developer.android.com/guide/topics/media/cam era.html # बचत मीडिया –