Android Open Source - android-ribbit-design Ribbit Application






From Project

Back to project page android-ribbit-design.

License

The source code is released under:

MIT License

If you think the Android project android-ribbit-design 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 com.teamtreehouse.ribbit;
/*from w ww.  ja  v a2 s.c om*/
import android.app.Application;

import com.parse.Parse;
import com.parse.ParseInstallation;
import com.parse.ParseUser;
import com.parse.PushService;
import com.teamtreehouse.ribbit.ui.MainActivity;
import com.teamtreehouse.ribbit.utils.ParseConstants;

public class RibbitApplication extends Application {
  
  @Override
  public void onCreate() { 
    super.onCreate();
      Parse.initialize(this, 
        "5W9RXHhz1FYThSlwE5I7OPwBzCDkQEHUDog0MAR7", 
        "8MvV9aqRhMPJgN1zMIT1PHdst9HylXznJnWKRIwL");
      
      //PushService.setDefaultPushCallback(this, MainActivity.class);
      PushService.setDefaultPushCallback(this, MainActivity.class, 
          R.drawable.ic_stat_ic_launcher);
      ParseInstallation.getCurrentInstallation().saveInBackground();
  }
  
  public static void updateParseInstallation(ParseUser user) {
    ParseInstallation installation = ParseInstallation.getCurrentInstallation();
    installation.put(ParseConstants.KEY_USER_ID, user.getObjectId());
    installation.saveInBackground();
  }
}




Java Source Code List

com.teamtreehouse.ribbit.RibbitApplication.java
com.teamtreehouse.ribbit.adapters.MessageAdapter.java
com.teamtreehouse.ribbit.adapters.SectionsPagerAdapter.java
com.teamtreehouse.ribbit.adapters.UserAdapter.java
com.teamtreehouse.ribbit.ui.EditFriendsActivity.java
com.teamtreehouse.ribbit.ui.FriendsFragment.java
com.teamtreehouse.ribbit.ui.InboxFragment.java
com.teamtreehouse.ribbit.ui.LoginActivity.java
com.teamtreehouse.ribbit.ui.MainActivity.java
com.teamtreehouse.ribbit.ui.RecipientsActivity.java
com.teamtreehouse.ribbit.ui.SignUpActivity.java
com.teamtreehouse.ribbit.ui.ViewImageActivity.java
com.teamtreehouse.ribbit.utils.FileHelper.java
com.teamtreehouse.ribbit.utils.ImageResizer.java
com.teamtreehouse.ribbit.utils.MD5Util.java
com.teamtreehouse.ribbit.utils.ParseConstants.java