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
Post a Comment