GCM 機能を実装しようとしていますが、一部のデバイスでは機能しますが、他のデバイスでは機能しません。
GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);
final String regId = GCMRegistrar.getRegistrationId(this);
if (regId.equals("")) {
GCMRegistrar.register(this, "xxxxxx");
}
これは私のコードです。nexus s でアプリを起動すると正常に動作し、アプリは GCMRegistrar.register(this, "xxxxxx"); の後に GCMBaseIntentService を通常どおり呼び出します。しかし、Samsung SII でアプリを実行すると、GCMRegistrar.register(this, "xxxxxx"); が呼び出されます。ただし、GCMBaseIntentService を呼び出さないでください。どのメソッドも呼び出しません。同じことが他の人にも起こります。