Tenho uma aplicação que usa #StartAtBoot=True. Até a versão 6.0.1 do android funcionava, mas no android 7.1.1 não está funcionando. Será que alguém pode ajudar ? Grato!
Segue abaixo o código usado
#Region Service Attributes
#StartAtBoot: True
#End Region
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("Nome do Programa") '<-- Troque pelo nome do seu aplicativo
StartActivity(Main)
StopService("")
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub Service_Destroy
End Sub
Segue abaixo o código usado
#Region Service Attributes
#StartAtBoot: True
#End Region
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("Nome do Programa") '<-- Troque pelo nome do seu aplicativo
StartActivity(Main)
StopService("")
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub Service_Destroy
End Sub