Reputation: 327
I have app with multiple fragment.I running asynctask from fragment A and want stop it from fragment B How can I resolve this problem ?
Upvotes: 0
Views: 139
Reputation: 1157
I don't think you can use either use AsyncTask or AsyncTaskLoader for that. The easiest solution would probably be to do your download work in an IntentService, and communicate with it from the different activities.
Upvotes: 2