Android Question StartServiceAt, doesn't work at restart

nicieri

Active Member
Licensed User
Longtime User
Hi, I have this line in my Service_Start sub...

StartServiceAt("", DateTime.Now + 60 * 1000, True)

If I start the App with B4a, in release mode.. this work great.. every minute my service start again..

The problem is when I restart the phone.. the service ejecute ...only one time

Like this line "StartServiceAt("", DateTime.Now + 60 * 1000, True)" never exist... no error, nothing..

I have this service attributes:
#Region Service Attributes
#StartAtBoot: True
#ExcludeFromLibrary: True
#StartCommandReturnValue: android.app.Service.START_STICKY
#End Region

Any idea?
 

Ricky D

Well-Known Member
Licensed User
Longtime User
I do this with different services and they work
 
Upvote 0
Top