Back to project page android-ribbit-design.
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.
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(); } }