Currently building an Android app and utilizing AsyncTaskLoader. My app contains a ListView of articles that I obtain using JSON calls. It will leave and go somewhere else (in my case the browser) when the user clicks on an item, but when I press back it reloads the Loader. How can set it up to not reload? Thank you!
Asked
Active
Viewed 251 times
0
-
1Try to cache your content and please put some code so we can help you – Mohammad Apr 02 '17 at 04:07
1 Answers
0
use
cancelLoadInBackground()
Method of AsyncTaskLoader class.

Keyur Thumar
- 608
- 7
- 19
-
Here is a full document - https://developer.android.com/reference/android/content/AsyncTaskLoader.html – Keyur Thumar Apr 02 '17 at 05:50