#Region Service Attributes
#StartAtBoot: False
#End Region
Sub Process_Globals
Dim Broadcast As BroadCastReceiver
End Sub
Sub Service_Create
Broadcast.Initialize("BR")
End Sub
Sub Service_Start(StartingIntent As Intent)
Broadcast.SetPriority(2147483647)
Broadcast.registerReceiver("android.intent.action.MEDIA_BUTTON")
LogColor("BR registered: " & Broadcast.isRegistered,Colors.Green)
End Sub
Sub Service_Destroy
Broadcast.unregisterReceiver
End Sub
Sub BR_OnReceive(Action As String, Extras As Object)
ToastMessageShow("Receiver",False)
LogColor("Receiver",Colors.Green)
LogColor(Action,Colors.Red)
End Sub