Can anyone help provide me with the solution for this situation I'm using these 2 functions
private void pickFromGallery(){
Intent intent=new Intent(Intent.ACTION_PICK);
intent.setType("image/+");
startActivityForResult(intent,IMAGE_PICK_GALLERY_CODE);
}
private void pickFromCamera(){
ContentValues contentValues=new ContentValues();
contentValues.put(MediaStore.Images.Media.TITLE,"Temp_Image Title");
contentValues.put(MediaStore.Images.Media.DESCRIPTION,"Temp_Image Description");
image_uri=getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,contentValues);
Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT,image_uri);
startActivityForResult(intent,IMAGE_PICK_CAMERA_CODE);
}