I have an app that receives push notifications from C2DM server with a BroadcastReceiver. When the user press on the notification on the status bar, a random activity from my app is opened.
I need that when the user press on the notification, the notification get’s removed from the status bar. ¿how can i achieve it?
Thanks
you may try this
notification.flags |= Notification.FLAG_AUTO_CANCEL;