Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GauravChaddha1996/3468e5851fb6c0a82c10f339f3331e4e to your computer and use it in GitHub Desktop.
Save GauravChaddha1996/3468e5851fb6c0a82c10f339f3331e4e to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity implements MainViewInterface,
LoaderManager.LoaderCallbacks<MainPresenter> {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// start the loader to load the presenter
/* 1001 is a unique loader id through which system manages
a single instance of loader for an activity, the null
parameter is the bundle we may wish to pass, and this
indicated that the loader callback are implemented by this
activity. */
getSupportLoaderManager().initLoader(1001, null, this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment