コードスニペット:
Handler handler= new Handler();
handler.postDelayed(networkRunnable,
10000);
/**
* A runnable will be called after the 10 second interval
*/
Runnable networkRunnable= new Runnable() {
@Override
public void run() {
//Not fired if I quit the app before 10 seconds after 1 second.
}
};
10 秒後にトリガーするようにハンドラー ポストの遅延を設定します。1 秒から 10 秒の間にアプリを終了すると、run メソッドは呼び出されませんでした。
これについて私を助けてください。
前もって感謝します。