,關於編寫谷歌雲端通訊Android的部分,兩個不同的選項進行了說明:用於Google Cloud Messaging客戶端的BroadcastReceiver或GCMBroadcastReceiver?在文檔中
- 使用com.google.android.gcm.GCMRegistrar
,com.google.android.gcm.GCMBroadcastReceiver
和com.google.android.gcm.GCMBaseIntentService
在http://developer.android.com/google/gcm/gs.html#android-app
在http://developer.android.com/google/gcm/gcm.html#writing_apps - 使用android.content.BroadcastReceiver
和android.app.IntentService
+編寫處理程序。
這很混亂。建議的方式是什麼?