android - How to startForeground() without showing notification? -


i want create service , make run in foreground.

most example codes have notifications on it. don't want show notification. possible?

can give me examples? there alternatives?

my app service doing mediaplayer. how make system not kill service except app kill itself (like pausing or stopping music button).

as security feature of android platform, cannot, under any circumstance, have foregrounded service without having notification. because foregrounded service consumes heavier amount of resources , subject different scheduling constraints (i.e., doesn't killed quickly) background services, , user needs know what's possibly eating battery. so, don't this.

however, is possible have "fake" notification, i.e., can make transparent notification icon (iirc). extremely disingenuous users, , have no reason it, other killing battery , creating malware.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -