I have a doubt about the use of Loader.
In my case, I call my own class that extends AsyncTaskLoader and return a List of MyObject.
public class MyActivity extends AppCompatActivity implements LoaderManager.LoaderCallbacks<List<MyObject>> {
@Override
protected void onCreate(Bundle savedInstanceState) {
...
getLoaderManager().initLoader(1, null, this);
getLoaderManager().initLoader(2_ID, null, this);
getLoaderManager().initLoader(3_ID, null, this);
...
}
}
My question is: can I run many Loader at the same time on the same Activity?
Will every Loader, when its loadInBackground() method is finished, call the onLoadFinished() method impemented in my Activity?
Thank you in advance.