Auto-Run after boot

Hamo

Member
Licensed User
Longtime User
To run an app after boot, I usually add a service module, then in properties, set "start at boot" and add the code below to sub service_start and it works fine.
I am trying to do this with android media players. When I power up, my app starts OK, displays for a few seconds, then my app exits, off to the main desktop. Why is it not working or what is stopping my app after it starts ?
Hamo

Sub Service_Start (StartingIntent As Intent)
StartActivity(Main)
StopService("")
End Sub
 

Hamo

Member
Licensed User
Longtime User
Thanks Erel, 10 second delay would be OK for my application. I have used timers in the main activity, but not sure how to do this in a service module. Any examples would be appreciated. Thanks again. You are the man.
Hamo
 
Upvote 0
Top