callback/callback-android — Issue #31: Failure delivering result ResultInfo` when taking photos (Android 2.3.3)
Author: sandstrom
Created: 2011-11-22 19:40:25+00:00
State: open

When taking photographs the application crashes with the following exception (below). The issue seems similar to:

http://stackoverflow.com/questions/7256384/android-camera-picture-uri-returning-with-a-failure-delivering-result-resultinfo
http://stackoverflow.com/questions/7750372/phonegap-camera-failure-when-retrieving-data

Android version: 2.3.3
Phone: Samsung Galaxy Gio

E/AndroidRuntime( 903): FATAL EXCEPTION: main
E/AndroidRuntime( 903): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=34, result=-1, data=Intent { act=inline-data (has extras) }} to activity {com.domain.mobile/com.domain.mobile.appname}: java.lang.NullPointerException
E/AndroidRuntime( 903):	at android.app.ActivityThread.deliverResults(ActivityThread.java:2536)
E/AndroidRuntime( 903):	at android.app.ActivityThread.handleSendResult(ActivityThread.java:2578)
E/AndroidRuntime( 903):	at android.app.ActivityThread.access$2000(ActivityThread.java:117)
E/AndroidRuntime( 903):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:965)
E/AndroidRuntime( 903):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 903):	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 903):	at android.app.ActivityThread.main(ActivityThread.java:3687)
E/AndroidRuntime( 903):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 903):	at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 903):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
E/AndroidRuntime( 903):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
E/AndroidRuntime( 903):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 903): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 903):	at android.content.ContentResolver.openInputStream(ContentResolver.java:303)
E/AndroidRuntime( 903):	at com.phonegap.CameraLauncher.onActivityResult(CameraLauncher.java:248)
E/AndroidRuntime( 903):	at com.phonegap.DroidGap.onActivityResult(DroidGap.java:1346)
E/AndroidRuntime( 903):	at android.app.Activity.dispatchActivityResult(Activity.java:3908)
E/AndroidRuntime( 903):	at android.app.ActivityThread.deliverResults(ActivityThread.java:2532)
E/AndroidRuntime( 903):	... 11 more
W/ActivityManager( 162): Force finishing activity com.domain.mobile/.appname