Created
July 24, 2014 16:48
-
-
Save ameron32/240d94e2d84764657cc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FOUND IN ParseApplication.java */ | |
/* MOVING INITIALIZATION TO APPLICATION LEVEL */ | |
public class ParseApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
Parse.initialize(this, | |
getResources().getString(R.string.parse_application_id), | |
getResources().getString(R.string.parse_client_key)); | |
} | |
} | |
/* FOUND IN AndroidManifest.xml */ | |
/* FORCING APPLICATION TO CUSTOM APPLICATION */ | |
<application | |
android:name=".ParseApplication" | |
android:allowBackup="true" | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" | |
android:theme="@android:style/Theme.Light.NoTitleBar" > | |
// ... more from MessagingTutorial project ... | |
</application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment