Skip to content

Commit 9f3dbe3

Browse files
author
Devendra
committed
fixing gcm demo app
1 parent 31aba80 commit 9f3dbe3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • android/examples/PubnubExample/src/com/pubnub/examples/pubnubExample10

‎android/examples/PubnubExample/src/com/pubnub/examples/pubnubExample10/MainActivity.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ private String gcmRegister() {
588588
return null;
589589
}
590590

591-
String REG_ID = getRegistrationId(context);
591+
REG_ID = getRegistrationId(context);
592592

593593
if (TextUtils.isEmpty(REG_ID)) {
594594

@@ -598,9 +598,9 @@ private String gcmRegister() {
598598
"registerGCM - successfully registered with GCM server - regId: "
599599
+ REG_ID);
600600
} else {
601-
//Toast.makeText(getApplicationContext(),
602-
// "RegId already available. RegId: " + REG_ID,
603-
// Toast.LENGTH_LONG).show();
601+
Toast.makeText(getApplicationContext(),
602+
"RegId already available. RegId: " + REG_ID,
603+
Toast.LENGTH_LONG).show();
604604
}
605605
return REG_ID;
606606
}
@@ -658,9 +658,9 @@ protected String doInBackground(Void... params) {
658658

659659
@Override
660660
protected void onPostExecute(String msg) {
661-
/*Toast.makeText(getApplicationContext(),
661+
Toast.makeText(getApplicationContext(),
662662
"Registered with GCM Server." + msg, Toast.LENGTH_LONG)
663-
.show();*/
663+
.show();
664664
}
665665
}.execute(null, null, null);
666666
}

0 commit comments

Comments
 (0)