Hi there...
I have b4a v9... well after some updates... i think after b4a v7+ - something changed - trying to figure what...
I want my app starting automatically at boot and never stops for any reason - only when user kill proccess/service... not from android...
Well i knew:
- That is better not having in Starter - the official StartatBoot: True... so i have a service named Alarm
- Better have different Service, and using:
Service.AutomaticForegroundMode=Service.AUTOMATIC_FOREGROUND_NEVER
and at Service_Start:
Service.StartForeground(1, CreateNotification("..."))
StartServiceAt(Me, DateTime.Now + 10 * DateTime.TicksPerMinute, True)
But trying all the above with newer version of b4a and at 8.1 oreo.... and not starting automatically... and if it is sometimes killed by system!
at Android 8.1 oreo at least at my phone there is option DURASPEED...(for working apps in background) if it is enabled at my app.. never killed...
how can i bypass all these ... problems ?
I have b4a v9... well after some updates... i think after b4a v7+ - something changed - trying to figure what...
I want my app starting automatically at boot and never stops for any reason - only when user kill proccess/service... not from android...
Well i knew:
- That is better not having in Starter - the official StartatBoot: True... so i have a service named Alarm
- Better have different Service, and using:
Service.AutomaticForegroundMode=Service.AUTOMATIC_FOREGROUND_NEVER
and at Service_Start:
Service.StartForeground(1, CreateNotification("..."))
StartServiceAt(Me, DateTime.Now + 10 * DateTime.TicksPerMinute, True)
But trying all the above with newer version of b4a and at 8.1 oreo.... and not starting automatically... and if it is sometimes killed by system!
at Android 8.1 oreo at least at my phone there is option DURASPEED...(for working apps in background) if it is enabled at my app.. never killed...
how can i bypass all these ... problems ?