Android: Calling crop activity after taking photo
I'm facing a problem with parsing a uri of taken photo to crop activity. In my application, users can take a photo or select one from gallery and then crop it and upload it. Everything sounds straightforward. When pick from Gallery, Gallery app return an uri for selected photo like this: content://media/external/images/media/20 I start crop activity with this uri by following code, everything seems ok: Intent intent = new Intent("com.android.camera.action.CROP"); intent.setData(uri); intent.putExtra("outputX", 96); intent.putExtra("outputY", 96); intent.putExtra("aspectX", 1); intent.putExtra(