Disable clearing notification for my application

Viewed 9742

I need to write some application which will do some work in background. This application will be run from autostart and there wont be any start gui. Gui can be call from click on notification which will be showing with autostart. I worried that, when user clear notifications he lost opportunity to call this gui. My question is that is there any way to block clearing my notification by user?

6 Answers

using this alone works perfectly for me Notification.FLAG_NO_CLEAR along with notification.SetOngoing(true);

notification.SetAutoCancel(false);

Related