执行停止未恢复的活动{com.android.settings / com.android.settings.SubSettings}

时间:2015-09-21 16:31:33

标签: java android xamarin xamarin.android

当我突然发生奇怪的崩溃时,我在5.1.1设备(Nexus 9)上运行我的Android应用程序。当应用程序尝试启动新活动(startActivityForResult()具体)时,该过程似乎已经消失。我去看看logcat(调试器中没有抛出异常),看到了这个:

E/ActivityThread(13750): Performing stop of activity that is not resumed: {com.android.settings/com.android.settings.SubSettings}
E/ActivityThread(13750): java.lang.RuntimeException: Performing stop of activity that is not resumed: {com.android.settings/com.android.settings.SubSettings}
E/ActivityThread(13750):    at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3344)
E/ActivityThread(13750):    at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3425)
E/ActivityThread(13750):    at android.app.ActivityThread.access$1100(ActivityThread.java:151)
E/ActivityThread(13750):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1332)
E/ActivityThread(13750):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/ActivityThread(13750):    at android.os.Looper.loop(Looper.java:135)
E/ActivityThread(13750):    at android.app.ActivityThread.main(ActivityThread.java:5254)
E/ActivityThread(13750):    at java.lang.reflect.Method.invoke(Native Method)
E/ActivityThread(13750):    at java.lang.reflect.Method.invoke(Method.java:372)
E/ActivityThread(13750):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/ActivityThread(13750):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

我认为异常是调用本机设置应用程序而不是我自己的应用程序是奇怪的,因为它决定杀死我的进程。这是正常的吗?我可以做些什么来阻止本机应用程序中的异常消除我的进程?或者我是否完全误读了这个例外?

0 个答案:

没有答案