Is there a way to check if user has added his google account on his device before starting the GCM registering procedure API 8?
When try to register without it the app gives a warning stopped unexpectedly when closing, so like to check first, alert the user and close the app.
I had a look at the source for checkDevice() and as far as I can see it only checks the API level and that the gcm package is on the device. So following on from CommonsWare’s suggestion, this code appears to do the job for me:
You will need the line
in the manifest