Hi,
I want to start my Basic4Android application just after booting my tablet to run automatically without user intervention. Can someone give some indication to do it, maybe using a service?
'Service module
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
StartActivity(main)
StopService("")
End Sub
Sub Service_Destroy
End Sub
This is the only option.Or am I better off setting a flag, always starting the service, and killing it immediately if the user doesn't want it to start with the device? This approach seems wasteful, but I can certainly go that route if it's the best option for now.