Back to project page gonzomemory.
The source code is released under:
Apache License
If you think the Android project gonzomemory listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.janpeuker.apps.gonzonotes; // ww w . ja va2s .c o m import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.widget.SimpleCursorAdapter; import de.janpeuker.apps.gonzonotes.mvp.GonzonotesAndroidPresenter; import de.janpeuker.apps.gonzonotes.mvp.GonzonotesPresenter; @SuppressLint("NewApi") public class GonzonotesActivity extends Activity { private GonzonotesPresenter presenter; private SimpleCursorAdapter adapter; /** Called when the activity is first created. */ @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); presenter = GonzonotesAndroidPresenter.getInstance(this); presenter.createView(savedInstanceState); } @Override public void onPause() { super.onPause(); presenter.pauseView(); } @Override public void onResume() { super.onResume(); presenter.resumeView(); } @Override protected void onSaveInstanceState(final Bundle storeBundle) { super.onSaveInstanceState(storeBundle); presenter.storeInstanceState(storeBundle); } }