Created
June 25, 2017 16:43
-
-
Save GauravChaddha1996/3468e5851fb6c0a82c10f339f3331e4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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