android - Failure delivering result ResultInfo to activity when selecting a photo from Google photos app -
i crash when selecting trying pick image new google photo's app
java.lang.runtimeexception: failure delivering result resultinfo{who=null, request=2, result=-1, data=intent { dat=content://com.google.android.apps.photos.contentprovider/-1/1/content://media/external/images/media/20639/actual flg=0x1 (has clip) }} activity {com.tyczj.xxx/com.tyczj.xxx.mainactivity}: java.lang.nullpointerexception: uristring @ android.app.activitythread.deliverresults(activitythread.java:3432) @ android.app.activitythread.handlesendresult(activitythread.java:3475) @ android.app.activitythread.access$1300(activitythread.java:139) @ android.app.activitythread$h.handlemessage(activitythread.java:1258) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5086) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) @ dalvik.system.nativestart.main(native method) caused by: java.lang.nullpointerexception: uristring @ android.net.uri$stringuri.<init>(uri.java:467) @ android.net.uri$stringuri.<init>(uri.java:457) @ android.net.uri.parse(uri.java:429) @ com.tyczj.xxx.mainactivity.onactivityresult(mainactivity.java:537) @ android.app.activity.dispatchactivityresult(activity.java:5446) @ android.app.activitythread.deliverresults(activitythread.java:3428) at android.app.activitythread.handlesendresult(activitythread.java:3475) at android.app.activitythread.access$1300(activitythread.java:139) at android.app.activitythread$h.handlemessage(activitythread.java:1258) at android.os.handler.dispatchmessage(handler.java:102) at android.os.looper.loop(looper.java:136) at android.app.activitythread.main(activitythread.java:5086) at java.lang.reflect.method.invokenative(native method) at java.lang.reflect.method.invoke(method.java:515) at com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) at com.android.internal.os.zygoteinit.main(zygoteinit.java:601) at dalvik.system.nativestart.main(native method)
this intent use
intent = new intent(intent.action_pick, android.provider.mediastore.images.media.external_content_uri); startactivityforresult(i, image_pick);
i crash google photo's app. if use built in gallery works fine.
is bug new photo's app or there else have it?
it appears bug new google photos app. new update rolling (version 1.0.1) fixes problem
Comments
Post a Comment