BrotherEarth
Member
Hi,
I have recently dusted off my B4A development efforts but I am very rusty.
I am trying to use Zebra Technologies RxLogger Intent to start and stop the RxLogger app via B4A app. (see RxLogger guide https://techdocs.zebra.com/rxlogger/latest/guide/apis/).
This is the "intent" that is documented that will do one of the several actions the B4A app needs to perform, but no code sample was provided for any language:
'com.symbol.rxlogger.intent.action.ENABLE'
I am clearly missing something important, my code does not work properly, it actually launches the RxLogger but then suspends for the queue then hangs:
Log view shows:
I have recently dusted off my B4A development efforts but I am very rusty.
I am trying to use Zebra Technologies RxLogger Intent to start and stop the RxLogger app via B4A app. (see RxLogger guide https://techdocs.zebra.com/rxlogger/latest/guide/apis/).
This is the "intent" that is documented that will do one of the several actions the B4A app needs to perform, but no code sample was provided for any language:
'com.symbol.rxlogger.intent.action.ENABLE'
I am clearly missing something important, my code does not work properly, it actually launches the RxLogger but then suspends for the queue then hangs:
Log view shows:
- ** Activity (main) Pause, UserClosed = false **
- sending message to waiting queue (astreams_newdata)
B4A Code:
Public Sub setRxlStart () As Boolean
Dim pm As PackageManager
Dim intent As Intent
intent = pm.GetApplicationIntent("com.symbol.rxlogger")
If intent.IsInitialized Then
Log("Starting RX Logger")
intent.Action = "intent.action.ENABLE"
StartActivity(intent)
Return True
End If
Return False
End Sub