Can't toast on this thread.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2014-08-02 23:15:57 -07:00
parent e53bbe8453
commit 8726dd51be

View File

@ -52,7 +52,8 @@ public class GcmRegistrationService extends Service implements Runnable {
int result = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
if (result != ConnectionResult.SUCCESS) {
Toast.makeText(this, "Unable to register with GCM!", Toast.LENGTH_LONG).show();
Log.w(TAG, "Unable to register with GCM! " + result);
return;
}
String gcmId = GoogleCloudMessaging.getInstance(this).register(REGISTRATION_ID);