I created a Notification using Notification.FLAG_ONGOING_EVENT
. Now I want to use it as on/off switch just like bluetooth or wifi in Status bar.
I want to use it as on off switch for my service. If I click it, it will start the service and if I click it again it will off the service. Just like the bluetooth /wifi or other things in status bar. As I can't put anything on Status bar I want to use the notification bar in that way. Is it possible?