я делаю уведомление с этим кодом:начать деятельность при нажатии на уведомления
NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
//Create your notification
int icon = R.drawable.ic_launcher;
CharSequence tickerText = " message";
long when = System.currentTimeMillis();
Notification notification = new Notification(icon, tickerText,when);
Context context = getApplicationContext();
CharSequence contentTitle = last_notifs_array[0][2];
CharSequence contentText = "New Message";
PendingIntent pIntent = PendingIntent.getActivity(notifService.this,0, intent1,0);
notification.setLatestEventInfo(context,contentTitle,contentText,pIntent);
// Send the notification
nm.notify(HELLO_ID,notification);
Но я хочу, чтобы начать деятельность, когда я нажимаю на уведомление. Как я могу это сделать?
проверить этот вопрос: http://stackoverflow.com/questions/10184351/how-to -start-активность, когда-пользователь-щелкает-а-уведомление? RQ = 1 –