Intent m_intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File file = new File(Environment.getExternalStorageDirectory(), "MyPhoto.jpg");
Uri uri = FileProvider.getUriForFile(this, this.getApplicationContext().getPackageName() + ".provider", file);
m_intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(m_intent, CAMERA_REQUEST);
startActivityForResult(m_intent, CAMERA_REQUEST) Request Returning Zero while photo captured successfully from Camera
30 views Asked by DeGM Narmadapuram At
1
DeGM Narmadapuram, Here I am sharing full code for clicking image from Camera and show it to imageview.
From this method you can capture picture and that picture has URI already created while clicking image so when you get result you can directly show image from this URI like below :