我已經在我的項目中使用C2DM代碼實現了推送通知。它顯示推送通知但我的問題是如何打開應用程序點擊推送通知。android:如何在點擊推送通知時打開應用程序
我做它像:
Intent intent = new Intent(context, BingoDiaryActivity.class);
intent.putExtra("registration_id", registrationId);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
notification.setLatestEventInfo(context, "Registration", "Successfully registered",
pendingIntent);
notificationManager.notify(0, notification);
但它不工作
任何人都可以幫助我在這個?
感謝
只是一個預感。嘗試使用非零通知代碼。 .notify(99,通知) – 2011-12-23 05:15:48