lorensiuswlt / AndroidImageCrop

How select and crop image on Android
http://www.londatiga.net/featured-articles/how-to-select-and-crop-image-on-android/
175 stars 102 forks source link

onActivityResult() is never called for CROP_FROM_CAMERA on Android 4.0.3 #1

Open lomza opened 12 years ago

lomza commented 12 years ago

On Android 4.0.3 (tested on Galaxy Nexus and Galaxy S II) I failed to crop an image taken from the camera. There is one application that crops images installed. startActivityForResulf() is fired with CROP_FROM_CAMERA request code, however onActivityResult() is never called after that. What I see on a phone screen is just "Loading image..." progress dialog. It seems they've changed something or maybe it's just an Android 4.0 bug...

hidabe commented 11 years ago

Same bug here

h-bomb commented 11 years ago

This looks like the problematic line:

MainActivity:doCrop():line 129 or: Intent intent = new Intent("com.android.camera.action.CROP");

AndroidImageCrop will not work on all devices.

The issue is explained here:

http://commonsware.com/blog/2013/01/23/no-android-does-not-have-crop-intent.html