Android Open Source - gonzomemory Gonzonotes Application






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;
//www .  j av a2  s  .c o  m
import com.parse.LogInCallback;
import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseException;
import com.parse.ParseUser;

import android.app.Application;
import android.util.Log;

public class GonzonotesApplication extends Application {

  private static final String GONZONOTES_APPLICATION_ID = "LLGtuK815Yy6Svn6WVfcXJFgGdlgAX9GlxuATL9B";
  private static final String GONZONOTES_CLIENT_KEY = "ZCW2kAmoc1ZmlXtMbQ4RoQLgVuh6hK1bnkxFksIE";

  @Override
  public void onCreate() {
    super.onCreate();

    // Add your initialization code here
    Parse.initialize(this, GONZONOTES_APPLICATION_ID, GONZONOTES_CLIENT_KEY);

    ParseUser.logInInBackground("janpeuker", "CPP6LqSFUHswLAV", new LogInCallback() {

      @Override
      public void done(final ParseUser user, final ParseException e) {
        if (e != null) {
          Log.e(Constants.TAG, "Could not log in user", e);
        } else {
          Log.i(Constants.TAG, "Logged in user " + user.getUsername());
        }
      }
    });

    final ParseACL defaultACL = new ParseACL();

    ParseACL.setDefaultACL(defaultACL, true);

  }

  // ParseUser user = new ParseUser();
  // user.setUsername("janpeuker");
  // user.setPassword("CPP6LqSFUHswLAV");
  // user.setEmail("devel@janpeuker.de");
  //
  // user.signUpInBackground(new SignUpCallback() {
  // public void done(ParseException e) {
  // if (e == null) {
  // Log.i(Constants.TAG, "Created user janpeuker");
  // } else {
  // Log.e(Constants.TAG, "Could not create user", e);
  // }
  // }
  // });

}




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