Ok I created another service called "Boot" and set that option to StartAtBoot. It has nothing in it, other then a toastmessage to let the user know the service started in the background. I thought I had to call the 'Starter' service aswell, but it opens automatically. Well according to the logs, it starts even before the boot service.
It works though, when I open the app for the first time after startup, it loads Main. Thank you Don!
--------- beginning of system
--------- beginning of main
** Service (starter) Create **
** Service (starter) Start **
** Service (boot) Create **
** Service (boot) Start **
#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
End Sub
Sub Service_Start (StartingIntent As Intent)
If StartingIntent.Action = "android.intent.action.BOOT_COMPLETED" Then
ToastMessageShow("Auto Shutdown service started", False)
End If
' StartService(Starter)
End Sub
Sub Service_Destroy
End Sub