Timeline for answer to how to stop asyncTask android by Ravi Theja
Current License: CC BY-SA 3.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Apr 7, 2016 at 12:59 | history | suggested | F43nd1r | CC BY-SA 3.0 |
formatting
|
| Apr 7, 2016 at 12:26 | comment | added | Hussain Eid |
if (isCancelled()) { this.cancel(true); } else{ listView.setVisibility(View.GONE); }
|
|
| Apr 7, 2016 at 12:00 | comment | added | Ravi Theja |
check the the isCancelled() value and if it is false then continue your work in postExecute()
|
|
| Apr 7, 2016 at 11:57 | comment | added | Hussain Eid | it is invoke isCancelled() first but it also invoke onPostExecute(Object) after isCancelled() runs. | |
| Apr 7, 2016 at 11:44 | review | Suggested edits | |||
| S Apr 7, 2016 at 12:59 | |||||
| Apr 7, 2016 at 11:36 | history | answered | Ravi Theja | CC BY-SA 3.0 |