tags:

views:

178

answers:

2

when i run my application i am running one notification service .how i disable clear notification service button in my application only i need to run the service when my application is running .is there any way to disable the clear notification button .please

help me

Thanks

Aswan

A: 

The Button class inherits the setClickable(boolean) method from View. if you set it to false, the Button will be disabled.

Nathan
+1  A: 

It's simple, just add FLAG_NO_CLEAR flags to your notification object. notification.flags = Notification.FLAG_NO_CLEAR;

Army