0

我有一个在信息亭上运行的应用程序。大约 8 小时后,应用程序“消失”。“消失”是指它不再是最顶级的应用程序并且桌面显示。该应用程序仍在运行,因为它在我单击“切换应用程序”按钮后出现。

我试图弄清楚为什么会这样。我添加了

protected void onDestroy() {
    Log.e("here", "onDestroy");
    super.onDestroy();
}

protected void onPause() {
    Log.e("here", "onPause");
    super.onPause();
}


protected void onStop() {
    Log.e("here", "onStop");
    super.onStop();
}

@Override
protected void onCreate(Bundle savedInstanceState) {
    Log.e("here", "onCreate");

    super.onCreate(savedInstanceState);
    webView = (WebView) findViewById(R.id.webView);

    Thread.setDefaultUncaughtExceptionHandler(
                new Thread.UncaughtExceptionHandler() {
                    public void uncaughtException(Thread thread, Throwable ex) {
                    };
                }
        );

当我收到错误报告时,我就是这样想的,我会看看发生了什么。但是,日志中没有出现任何内容。

10-31 18:44:03.400   354   397 W InputDispatcher: channel '41327498 com.here/com.here.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
10-31 18:44:03.400   354   397 E InputDispatcher: channel '41327498 com.here/com.here.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-31 18:44:03.400   354   607 I WindowState: WIN DEATH: Window{41327498 u0 com.here/com.here.MainActivity}
10-31 18:44:03.420   354   607 W InputDispatcher: Attempted to unregister already unregistered input channel '41327498 com.here/com.here.MainActivity (server)'
10-31 18:44:03.430   354   366 W ActivityManager: Force removing ActivityRecord{411eea18 u0 com.here/.MainActivity}: app died, no saved state
10-31 18:44:03.490   354   413 I qtaguid : Failed write_ctrl(s 0 10054) res=-1 errno=1
10-31 18:44:03.490   354   413 W NetworkManagementSocketTagger: setKernelCountSet(10054, 0) failed with errno -1
10-31 18:44:03.600   354   366 I ActivityManager: Start proc com.android.launcher for activity com.android.launcher/com.android.launcher2.Launcher: pid=7147 uid=10024 gids={50024, 1028}

有谁知道为什么在使用大约几个小时后窗口被隐藏了?有什么我可以用仪器来解决这个问题的系统吗?

4

0 回答 0