GCM Error - googleCloudMessaging.register
I have the problem that the android application says. "The application xxxx Sorry stopped" to work with the push notificaction, when performing the debugger that happens when it passes: method 1 InstanceID InstanceId = InstanceID.getInstance (context); token = instanceID.getToken (key_id.toString () GoogleCloudMessaging.INSTANCE_ID_SCOPE); getToken error, method 2 Both an the same mistake if (googleCloudMessaging == null) { googleCloudMessaging = GoogleCloudMessaging.getInstance(context); } token = googleCloudMessaging.register(key_id); note that the token is generated but the application is