7

Since upgrading to Android 4.3, my application is displaying a persistent system notification:

[My App] is running; Touch for more information or to stop the app

It reads:

[My App] is running
Touch for more information or to stop the app

Why is it there, and what can I do about it?

Geobits
  • 22,218
  • 6
  • 59
  • 103
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
  • check my possible solution here: http://stackoverflow.com/a/18281520/444324 May work for you if you still want to hide the notification itself – Lior Iluz Aug 16 '13 at 20:21

2 Answers2

15

This behavior is triggered by applications (ab)using Service.startForeground().

The idea behind using startForeground() is that you provide a notification through which users can interact with your app while it is running. For instance, if it's a music player, make sure you're providing the persistent notification as a parameter of the function, so that Android knows the user already has a way of letting your app invoke stopForeground().

You can basically see this as "public shaming", because apps should behave nicely on the platform and let the system kill them if it needs to.

(In my case, the culprit was actually Robospice; here's the line in question and the associated issue.)

Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
  • Totally right, an android Engineer says the same thing here: http://www.androidpolice.com/2013/07/29/android-engineer-explains-why-some-apps-suddenly-have-persistent-notifications-after-you-upgrade-to-android-4-3/ – Diaa Sami Aug 04 '13 at 19:41
  • 1
    Hello Paul, once more I find your answer here rather than asking directly ) thnx it helped – Artem Svystun May 30 '14 at 11:03
1

If you device is rooted you can hide these notifications using GravityBox using the Xposed Framework.

In GravityBox go to Statusbar tweaks >> Ongoing notification blocker >> Select which to block >> Ok After a device reboot those notifications will be gone.

Stormenet
  • 25,926
  • 9
  • 53
  • 65