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
Post a Comment