android - Is there a mistake in the GCM Quick Start? -


it first time using google cloud messaging. , trying understand this guide.

in oncreate method, broadcastreceiver defined. necessary update ui when registration token received.

in same method (line 67) there condition. "if" checks if google play service available on device, , finally, registrationintentservice called.

i think gettoken method (line 53) not async, , reason use intent service (i understand service comparing thread).

my doubt comment (line 46). says "subsequent calls local". never saw reading of sharedpreferences in mainactivity. so, intent service started, right?

please correct me if wrong.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -