im following the tutorial from developers guide but i have a problem...
tutorial says: "To clear the status bar notification when the user selects it from the Notifications window, add the "FLAG_AUTO_CANCEL" flag to your Notification object"
but... how i can add the flag to my notification?
notification doesn't have any kind of function to add flags.... then? how i can do it?
Notification flags is a public member field.
Notification notif = new Notification(R.drawable.icon, shortMsg,
System.currentTimeMillis());
notif.flags |= Notification.FLAG_AUTO_CANCEL;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With