M Mahares Expert Licensed User Longtime User Mar 20, 2013 #1 I have included a service module with StartAtBoot: True to start my application. It works when I POWER OFF the tablet and turn it back on. But I would like my application to always come to the fore front and start when I turn power button on. Can this be done? Thank you very much
I have included a service module with StartAtBoot: True to start my application. It works when I POWER OFF the tablet and turn it back on. But I would like my application to always come to the fore front and start when I turn power button on. Can this be done? Thank you very much
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2013 #2 You can listen to the ScreenOn event with PhoneEvents. However this event can only be intercepted with dynamic receivers (see the intent filters tutorial). This means that you will need to call Service.StartForeground to keep your process running all the time. Upvote 0
You can listen to the ScreenOn event with PhoneEvents. However this event can only be intercepted with dynamic receivers (see the intent filters tutorial). This means that you will need to call Service.StartForeground to keep your process running all the time.