M Markos Well-Known Member Licensed User Longtime User Oct 4, 2018 #1 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
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 Oct 4, 2018 #2 Markos said: 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 Click to expand... 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
Markos said: 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 Click to expand... 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