android - 如何从 c2dm 注销?

标签 android android-c2dm

如何从 c2dm onclick 按钮注销?我想添加到应用程序功能以在用户注销时停止接收通知。

最佳答案

从 C2DM 注销:

Intent unregIntent = new Intent("com.google.android.c2dm.intent.UNREGISTER");
unregIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
startService(unregIntent);

来自 http://code.google.com/android/c2dm/#unregistering

关于android - 如何从 c2dm 注销?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8503024/

相关文章:

Android:从将数据存储在列表中过渡到使用 SQLite

android在fragment上实现寻呼机时出错

php - 如何测试推送/C2DM 通知到 Android 应用程序?

Android C2DM - 如果注册 ID 被刷新会发生什么

java - 保存自定义 ListView 的实例状态?

android - 用户打字时如何避免 EditText 上的多个触发器?

android - c2dm 更新 android 小部件

安卓 : How to notify the user when the Application is not running

如果任务被终止,Android C2DM 工作

java - 整个 TextView 的自动完成