任何人都可以帮我解决这个问题吗?
我正在打印Logcat。但我无法重现这个问题。很少有用户遇到此问题。
java.lang.RuntimeException:无法恢复活动 {myPackage / myPackage.FragmentViewer}:java.lang.RuntimeException: 发送失败结果ResultInfo {who = null,request = 65537, result = -1,data = Intent {}}到activity {myPackage / myPackage.FragmentViewer}:java.lang.NullPointerException: uri ---------堆栈跟踪--------- android.app.ActivityThread.performResumeActivity(ActivityThread.java:4156) android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4258) android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3361) android.app.ActivityThread.access $ 1100(ActivityThread.java:222) android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1795) android.os.Handler.dispatchMessage(Handler.java:102) android.os.Looper.loop(Looper.java:158) android.app.ActivityThread.main(ActivityThread.java:7237) java.lang.reflect.Method.invoke(Native方法) com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) ------------------------------- ---------原因--------- java.lang.RuntimeException:传递结果失败 ResultInfo {who = null,request = 65537,result = -1,data = Intent {}} to activity {myPackage / myPackage.FragmentViewer}: java.lang.NullPointerException:uri android.app.ActivityThread.deliverResults(ActivityThread.java:4933) android.app.ActivityThread.performResumeActivity(ActivityThread.java:4142) android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4258) android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3361) android.app.ActivityThread.access $ 1100(ActivityThread.java:222) android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1795) android.os.Handler.dispatchMessage(Handler.java:102) android.os.Looper.loop(Looper.java:158) android.app.ActivityThread.main(ActivityThread.java:7237) java.lang.reflect.Method.invoke(Native方法) com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
这是从我的用户Logcat值复制的,他使用的是Android版本6.0.1
提前致谢。
答案 0 :(得分:1)
如果您还发布了onActivityResult
阻止,那将非常有用。