Android Question Keep Services running during screensaver

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone, I'm developing an application that will be set in Kiosk Mode on a Tablet Pc.
Currently, the app has many services (for a Syncing process, RFID reading, Serial Communication, etc...) and it has been configured to show the screensaver after a certain period of time.

When the tablet shows the screensaver I need to have my services continuously running even if the app is not showed, in this way I can intercept an eventual RFID card, or some new data from the Serial port and do things such as waking the device to show my app again etc...

So… how can I assure that my services will not be killed? Having the tablet in Kiosk mode is sufficient?
(Note: the device is rooted)

Thanks in advance
 

JohnC

Expert
Licensed User
Longtime User
Worse case, if you can't get your app to do what you want during the system screen saver, then turn off the system screen saver feature and add a "screen saver" animation to your app so your app can truly run 24/7 :)
 
Upvote 0

pazzokli

Active Member
Licensed User
Longtime User
I use the JohnC's solution. Every 5 minutes I put visibile a black Panel in whole screen. When user touch the panel It disappear.
 
Upvote 0
Top