In my app I work with ContentProvider
and use LoaderManager.LoaderCallbacks
Fragment (View)
Just don't register your presenter as Android specific callback target (e.g. BroadcastReceiver
, LoaderManager.LoaderCallbacks
etc.). Handle the callback methods in your View (Fragment or Activity) and pass all related data to the presenter.
If you need Context
for object creation, let your view create this object (as it has a reference to the Context
). In your case the call
Loader loader = new ArticleCatalogLoader(context, categoryId)
should be refactored to
view.createLoaderForCategory(categoryId)