int icon = R.drawable.icon4;
CharSequence tickerText = "Hello"; // ticker-text
long when = System.currentTimeMillis();
Context context = getApplicationContext();
CharSequence contentTitle = "Hello";
CharSequence contentText = "Hello";
Intent notificationIntent = new Intent(this, Example.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
Notification notification = new Notification(icon, tickerText, when);
notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
Esto no funcionará para mí.¿Cómo crear notificaciones que no desaparecen cuando se hace clic en Android?
¿Cómo puedo crear una notificación que se pueda hacer clic y vaya a mi aplicación, pero que no desaparece cuando se hace clic en ella?
similar: http://stackoverflow.com/questions/6391870/how-exactly-to-use-notification-builder/35279147#35279147 –