我初學者的Android應用程序和使用Java,當我添加以下代碼:錯誤的onCreate()方法
GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);
final String regId = GCMRegistrar.getRegistrationId(this);
if (regId.equals("")) {
GCMRegistrar.register(this, SENDER_ID);
} else {
Log.v(TAG, "Already registered");
}
我有錯誤的: SENDER_ID 登錄 TAG
錯誤「無法解析爲可用「
如果你是一個初學者,你不應該用GCM開始。 – Enrichman
你看過[這個](http://developer.android.com/guide/google/gcm/gs.html)嗎? – Praveenkumar