Other Problem with #StartAtBoot on Android 7.1.1.

Roberto M. de Oliveira

Member
Licensed User
I have an application that uses # StartAtBoot = True. Until version 6.0.1 of the android worked, but in android 7.1.1 is not working. Can anyone help? Thankful!
Below is the code used.

Sub Process_Globals
'
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
'
End Sub

Sub Service_Create
Dim Programa As Intent
Programa.Initialize("","")
Programa.SetComponent("Program name") '<-- Troque pelo nome do seu aplicativo
StartActivity(Main)
StopService("")
End Sub

Sub Service_Start (StartingIntent As Intent)

End Sub

Sub Service_Destroy

End Sub
 

Roberto M. de Oliveira

Member
Licensed User
Hi, Erel

Thank you for the quick reply. I´m using B4A 8.30 and android. jar (api 26).

In the manifest : android:targetSdkVersion="26".

What is the exact point to place the call (Service.StopAutomaticForeground) in the routine?
 
Upvote 0
Top