| Issue 14: | Allow hiding of statusbar icon when application is running | |
| 1 person starred this issue and may be notified of changes. | Back to list |
For people who run this as a normal service, it would be nice to have the ability to hide the statusbar notification icon.
May 21, 2012
By default services are background, meaning that if the system needs to kill them to reclaim more memory (such as to display a large page in a web browser), they can be killed without too much harm. The Network Log service is started in the foreground to prevent being killed. In order to be able to use the foreground service state, a notification is required. I could add an option to start the service in the background state, but that would mean that Android could shut down the service at any moment without any warning -- which would stop the logging. While I can understand the desire to keep the notification bar uncluttered, it could potentially be disruptive to the functionality of the app. I could try providing an option that allows the app to run with the service in the background with a disclaimer to use at your own risk (e.g., for those who have phones with tons of memory), but I do not particularly feel comfortable going this route because it's not consistent with what the Android engineers intended. Any suggestions or thoughts?
Status:
Feedback
Labels: -Priority-Medium Priority-High
May 21, 2012
I understand your concerns. I think the risk would be assumed. I'm not sure if you could make a simple watchdog sort of daemon that monitors the process to make sure it stays running. I see on your list of features to add, you want to enable data monitoring in the status bar. Perhaps the icon can be combined with the monitor and kill two birds with one stone? Thanks for the quick response and consideration!
May 25, 2012
For now, I will add an option -- with a nice warning disclaimer -- to allow the service to be started as a normal non-foreground service without a status bar notification.
Status:
Started
Labels: -Priority-High Priority-Critical Component-UI
May 25, 2012
Committed in https://code.google.com/p/iptableslog/source/detail?r=a210fd49bb1483723352f768cb17daf4e7ac655b Will be available in Network Log 2.4
Status:
Done
|
Owner: pragma78@gmail.com
Labels: -Priority-Low Priority-Medium