Android Open Source - gonzomemory Gonzonotes Activity






From Project

Back to project page gonzomemory.

License

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.

Java Source Code

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);
  }

}




Java Source Code List

de.janpeuker.apps.gonzonotes.Constants.java
de.janpeuker.apps.gonzonotes.GonzonotesActivity.java
de.janpeuker.apps.gonzonotes.GonzonotesApplication.java
de.janpeuker.apps.gonzonotes.ParseTransfer.java
de.janpeuker.apps.gonzonotes.mvp.GonzonotesAndroidPresenter.java
de.janpeuker.apps.gonzonotes.mvp.GonzonotesPresenter.java
de.janpeuker.apps.gonzonotes.mvp.GonzonotesViewModel.java
de.janpeuker.apps.gonzonotes.mvp.SharedPreferencesBasedGonzonotesViewModel.java
de.janpeuker.apps.gonzonotes.provider.NotesContract.java
de.janpeuker.apps.gonzonotes.provider.NotesProvider.java