android - How long onhandleintent wait after stop service -


suppose have service , in onhandleintent task running , meanwhile stopped service , ondestroy() called how long stays in onhandleintent.

suppose code this...

boolean isrunning = true;

  public void ondestroy() {     super.ondestroy();    // suppose don't false here bool.    }    protected void onhandleintent(final intent intent) {     super.onhandleintent(intent);     while(isrunning){     // stuff running here...     }   } 

i know should false boolean in ondestroy() buti want know how long stay in onhandleintent() evenif don't make boolean false.

please give me valuable views.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -