2013-02-14 32 views
2

,關於編寫谷歌雲端通訊Android的部分,兩個不同的選項進行了說明:用於Google Cloud Messaging客戶端的BroadcastReceiver或GCMBroadcastReceiver?在文檔中

- 使用com.google.android.gcm.GCMRegistrarcom.google.android.gcm.GCMBroadcastReceivercom.google.android.gcm.GCMBaseIntentServicehttp://developer.android.com/google/gcm/gs.html#android-app

http://developer.android.com/google/gcm/gcm.html#writing_apps - 使用android.content.BroadcastReceiverandroid.app.IntentService +編寫處理程序。

這很混亂。建議的方式是什麼?

回答

相關問題