From bdccb789196ac432b993e573d04b9f480e971bd1 Mon Sep 17 00:00:00 2001 From: HasanFaraaz Date: Tue, 3 Feb 2015 16:11:14 +0530 Subject: [PATCH] Blank activity fix on Android 5.0 ParseInstallation.getCurrentInstallation().saveInBackground(); will cause problems like a blank activity on android 5.0, by replacing it with ParseInstallation.getCurrentInstallation().saveEventually(); the problem is fixed --- .../parsenotificationexample/ParseApplication.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/makemyandroidapp/parsenotificationexample/ParseApplication.java b/src/com/makemyandroidapp/parsenotificationexample/ParseApplication.java index b742071..056fb1a 100644 --- a/src/com/makemyandroidapp/parsenotificationexample/ParseApplication.java +++ b/src/com/makemyandroidapp/parsenotificationexample/ParseApplication.java @@ -12,7 +12,8 @@ public void onCreate() { super.onCreate(); Parse.initialize(this, Keys.applicationId, Keys.clientKey); PushService.setDefaultPushCallback(this, MainActivity.class); - ParseInstallation.getCurrentInstallation().saveInBackground(); + //ParseInstallation.getCurrentInstallation().saveInBackground(); + ParseInstallation.getCurrentInstallation().saveEventually(); } }