android - cancel AsyncTask class in onPostExecute -
i'm inspecting other's code. , have seen there.
@override protected void onpostexecute(autobookmarkinfo result) { super.onpostexecute(result); // computation... if (setautobookmarktask != null) { setautobookmarktask.cancel(false); setautobookmarktask = null; } }
setautobookmarktask
- instance of asynctask class. please, explains why guy tries cancel working thread when work have been done ?
setautobookmarktask.cancel(false)
doesnot mean anything. if need interrupt or cancel async task have pass true in argument.
Comments
Post a Comment