biokys / cropimage

Replacement for deprecated official Android crop image function
555 stars 292 forks source link

Cropping screen doesn't come up on Kitkat #28

Open sunilbhambani opened 10 years ago

sunilbhambani commented 10 years ago

Hi,

Is there anyone who has tested this library on the Kitkat??

Regards, Sunil

giszo commented 10 years ago

I also have the same issue with cropimage on KitKat. The reason why it does not come up for me is an exception.

E/AndroidRuntime(26736): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.deverto.communicator/eu.janmuller.android.simplecropimage.C ropImage}: java.lang.NullPointerException E/AndroidRuntime(26736): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) E/AndroidRuntime(26736): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) E/AndroidRuntime(26736): at android.app.ActivityThread.access$800(ActivityThread.java:135) E/AndroidRuntime(26736): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) E/AndroidRuntime(26736): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(26736): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime(26736): at android.app.ActivityThread.main(ActivityThread.java:5017) E/AndroidRuntime(26736): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(26736): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(26736): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) E/AndroidRuntime(26736): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) E/AndroidRuntime(26736): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(26736): Caused by: java.lang.NullPointerException E/AndroidRuntime(26736): at java.io.File.fixSlashes(File.java:185) E/AndroidRuntime(26736): at java.io.File.(File.java:134) E/AndroidRuntime(26736): at eu.janmuller.android.simplecropimage.CropImage.getImageUri(CropImage.java:213) E/AndroidRuntime(26736): at eu.janmuller.android.simplecropimage.CropImage.onCreate(CropImage.java:133) E/AndroidRuntime(26736): at android.app.Activity.performCreate(Activity.java:5231) E/AndroidRuntime(26736): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime(26736): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) E/AndroidRuntime(26736): ... 11 more