Sub Service_Start (StartingIntent As Intent)
If rv.HandleWidgetEvents(StartingIntent) Then Return
If StartingIntent.Action="android.bluetooth.device.action.ACL_CONNECTED" Then
Log("bluetooth.device CONNECTED")
Else If StartingIntent.Action="android.bluetooth.device.action.ACL_DISCONNECTED" Then
Log("bluetooth.device DISCONNECTED")
End If
End Sub