Copyright (c) 2014, James Van Gaasbeck
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are m...
If you think the Android project KnightNews_Android 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 knightnews.android;
/*fromwww.java2s.com*/import android.app.Application;
import com.parse.Parse;
import com.parse.ParseInstallation;
import com.parse.PushService;
/**
* Created by James Van Gaasbeck on 8/25/14.
*/publicclass ApplicationClass extends Application {
privatestaticfinal String TAG = "ApplicationClass";
@Override
publicvoid onCreate() {
super.onCreate();
Parse.initialize(this, "keKOe5UZxrEWyX3UX4NQMLXsajd1xmG2t7op7FhP",
"0qqLP5RyNi2iF9OuHzeMJhs2VxmDOLc77uZ7yX7C");
PushService.subscribe(this, "Text", HomeActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground();
}
}