Black&WhiteStar
Member
Hi all,
in my project there's a service module that listen for the ACTION_ACL_DISCONNECTED event.
When it occurs, I want to analyze the intent's extras available in the Service_Start Sub.
In the Android developer page they said that the Broadcast Action "Always contains the extra fields EXTRA_DEVICE and EXTRA_TRANSPORT".
Unfortunately in the starting intent of my service I'm not able to extract these information.
If I call
it returns an android Bundle with some data, included the EXTRA_DEVICE extra (in fact if I call
it returns true).
But when I call
it always returns Null.
Am I missing something here?
Attached you can find an example project.
in my project there's a service module that listen for the ACTION_ACL_DISCONNECTED event.
When it occurs, I want to analyze the intent's extras available in the Service_Start Sub.
In the Android developer page they said that the Broadcast Action "Always contains the extra fields EXTRA_DEVICE and EXTRA_TRANSPORT".
Unfortunately in the starting intent of my service I'm not able to extract these information.
If I call
B4X:
Intent.ExtrasToString
B4X:
Intent.HasExtra(EXTRA_DEVICE)
But when I call
B4X:
Intent.GetExtra(EXTRA_DEVICE)
Am I missing something here?
Attached you can find an example project.