Android CROP错误

时间:2012-07-03 14:34:47

标签: android crop

有时候我有一个错误,当我试图仅在三星Galaxy s2中从相机制作裁剪时。我该如何解决?

07-03 17:25:13.643: E/AndroidRuntime(12485): FATAL EXCEPTION: main
07-03 17:25:13.643: E/AndroidRuntime(12485): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cooliris.media/com.cooliris.media.CropImage}: java.lang.NullPointerException
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1968)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1993)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.ActivityThread.access$600(ActivityThread.java:127)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.os.Handler.dispatchMessage(Handler.java:99)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.os.Looper.loop(Looper.java:137)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.ActivityThread.main(ActivityThread.java:4507)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at java.lang.reflect.Method.invokeNative(Native Method)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at java.lang.reflect.Method.invoke(Method.java:511)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at dalvik.system.NativeStart.main(Native Method)
07-03 17:25:13.643: E/AndroidRuntime(12485): Caused by: java.lang.NullPointerException
07-03 17:25:13.643: E/AndroidRuntime(12485):    at com.cooliris.media.CropImage.loadBitmap(CropImage.java:447)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at com.cooliris.media.CropImage.onCreate(CropImage.java:430)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.Activity.performCreate(Activity.java:4465)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
07-03 17:25:13.643: E/AndroidRuntime(12485):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1932)
07-03 17:25:13.643: E/AndroidRuntime(12485):    ... 11 more
07-03 17:25:13.653: E/android.os.Debug(1973): !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error

0 个答案:

没有答案