An AsyncTask can be cancelled anytime from any thread.
An AsyncTask can be cancelled anytime from any thread.
An AsyncTask can be cancelled only if it is invoked from the main thread. This is because AsyncTask is tightly bound to the UI thread and its lifecycle. Cancelling an AsyncTask from a background thread is not guaranteed to work correctly and can lead to unpredictable behavior.
A. True