Android Question Server type App

Markos

Active Member
Licensed User
Longtime User
Hi All,

I want to have my app running even when the phone screen saver or power saving kicks in. Will starting a service be the way to go? If so please direct me to a tutorial or example thanx
 

walterf25

Expert
Licensed User
Longtime User
Hi All,

I want to have my app running even when the phone screen saver or power saving kicks in. Will starting a service be the way to go? If so please direct me to a tutorial or example thanx
Yes, most likely you will need a Service to run in the background, in addition you will probably need to acquire a partial Lock so that the CPU doesn't doesn't go to sleep, this is only if you require to run a background task.

Check out the tutorial on Services
https://www.b4x.com/android/forum/threads/service-modules.7542/#content

Good luck!
Walter
 
Upvote 0
Top