Public Sub setRxlStart () As String
Dim currentTime As Long = DateTime.Now / 1000
Dim action As String = "com.symbol.rxlogger.intent.action.ENABLE"
Dim i As Intent
Dim P As Phone
Dim json As String = template
json = json.Replace("$dateTime", currentTime)
json = json.Replace("$command", "start")
i.Initialize(action,"")
i.SetComponent(action)
Try
P.SendBroadcastIntent(i)
Log("RxLogger started")
json = json.Replace("$status", "started")
Catch
Log("Error starting RxLogger. Is it installed?")
json = json.Replace("$status", "failed")
End Try
Return json
End Sub