if (!share_pref) {
try {
GCMRegistrar.checkDevice(CategoryPage.this);
GCMRegistrar.checkManifest(CategoryPage.this);
} catch (Exception e) {
e.printStackTrace();
}
final String regId = GCMRegistrar.getRegistrationId(this);
if (!regId.equals("")) {
Log.i("GCM_STATUS", "Already Registered with Gcm");
} else {
GCMRegistrar.register(CategoryPage.this, Constants1.SENDER_ID);
}
Log.e("GCM", "ID----->"+regId);
デバイス ID をアラート ボックスに表示したいのですが、そのためのコードを書きましたが、機能しません。ログ (コンソール) でデバイス ID を取得しています。デバイスの regId ID をアラート ボックスに表示する方法を教えてください。 UI で自分のデバイス ID を確認できます