Skip to content

Instantly share code, notes, and snippets.

@ameron32
Created July 24, 2014 16:48
Show Gist options
  • Save ameron32/240d94e2d84764657cc4 to your computer and use it in GitHub Desktop.
Save ameron32/240d94e2d84764657cc4 to your computer and use it in GitHub Desktop.
/* 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