Device can register with server and recieve GCM messages.
sharedPrefereces is updated and you can recieve registration status and registration id using these keys
sharedPreferences prefs....
prefs.gutBoolean(Constants.IS_REGISTERED, false);
prefs.getString(Constants.REGID_PREFS, "");