Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void onCreate(Bundle savedInstanceState) {
- FacebookSdk.sdkInitialize(getApplicationContext());
- Parse.initialize(this, "x","x");
- ParseInstallation.getCurrentInstallation().saveInBackground();
- ParsePush.subscribeInBackground("", new SaveCallback() {
- @Override
- public void done(ParseException e) {
- if (e == null) {
- Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");
- } else {
- Log.e("com.parse.push", "failed to subscribe for push", e);
- }
- }
- });
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement