Android Question Service and StartAtBoot

KL7000F

Member
Licensed User
Longtime User
Hi there,
I have two widget services that are started by StartAtBoot. In each case, only one available.
In each Serice_Start I have the following code. StateManager takes control widget that has been added. This is also stored correctly and also correctly read / recognized:

Code: Copy
Sub Service_Start (StartingIntent As Intent)
...
If StartingIntent.Action = "android.intent.action.BOOT_COMPLETED" AND StateManager.GetSetting2("Widget", "Widget") = "Widget1x1" Then
        StopService("")
    End If
...
End Sub

Nevertheless, both widget services are started on boot. Without reboot, only after installation, everything works just fine. Someone an idea?

greeting
Andy
 
I have now found another way, which works well. A "Starter Service" regulates when booting the widget. Nevertheless, many thanks for your answer.
 
Upvote 0
Back
Top