Reputation: 4639
I using Loader's
in my app. I'm want make differnent requests (get data from network) and all this must correctly worked when I rotate screen.
Can I use own Loader
for each requests?
p.s. I didnt find this in docs.
Upvotes: 1
Views: 52
Reputation: 1489
It depends on how often your app does requests. Does the order of results matter?
Of course, you can use multiple Loaders. To differentiate Loaders (if want to) you have to define many ids, then use switch statements in onCreateLoader, onLoadFinished, onLoaderReset.
I guess, Loaders are executed in the same thread (as AsyncTasks), so one worker can block others...
Did you consider to use Service?
Upvotes: 1