Using java Syntax Highlighting
- ....
- // what happens when we click the icon
- Intent clickIntent = new Intent(Intent.MAIN_ACTION);
- clickIntent.setClass(this, IncomingMessageView.class);
- // construct the Notification object.
- Notification notif = new Notification(
- R.drawable.stat_sample,
- getText(R.string.status_bar_notification_title),
- clickIntent, null, null);
- // send the notification ============================================
- nm.notifyWithView(R.layout.incoming_message_panel, view,
- NotificationManager.LENGTH_LONG, notif);
- }
- ....
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
After running application, status bar has icon. On click the IncomingMessageView must be shown. But, when I click it nothing happens. Why ?





