Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to cancel a notification after clicking it.

Hi, I will show you very fast how to dismiss a Notification after it was clicked. This post is for using NotificationCompat.Builder. So you should use: Pendingintent pendingIntent = PendingIntent.getActivity(context, intent_id, intent, PendingIntent. FLAG_ONE_SHOT); And you should use this code also: mBuilder.setAutoCancel(true); ||||| 0 I Like It! |||||



This post first appeared on Borrow EBooks, please read the originial post: here

Share the post

How to cancel a notification after clicking it.

×

Subscribe to Borrow Ebooks

Get updates delivered right to your inbox!

Thank you for your subscription

×