Android Application Development (AND-401) — Question 43
An AsyncTask can be cancelled anytime from any thread.
Answer options
- A. True
- B. False
Correct answer: A
Explanation
The correct answer is True because an AsyncTask can be cancelled from any thread using the cancel() method. The other option, False, is incorrect as it implies that there are restrictions on cancelling an AsyncTask, which is not the case.