B4A=true
Group=Default Group
ModulesStructureVersion=1
Type=Service
Version=9.9
@EndOfDesignText@
#Region Service Attributes
    #StartAtBoot: True
    #ExcludeFromLibrary: True
#End Region

' Starter - Auto-start service for headless operation
Sub Process_Globals
    Public ProjectionResultCode As Int = 0
    Public ProjectionData As Intent
End Sub

Sub Service_Create
    Log("Starter: Service_Create")
End Sub

Sub Service_Start (StartingIntent As Intent)
    Log("Starter: Service_Start - Starting MessageService")
    
    ' Start the MessageService using reflection to avoid module reference
    Dim in As Intent
    in.Initialize("", "")
    in.SetComponent("com.smartboard.sdms.agent/.messageservice")
    StartService(in)
    
    Service.StopAutomaticForeground
End Sub

Sub Service_Destroy
    Log("Starter: Service_Destroy")
End Sub

