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