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
Intent.HasExtra(EXTRA_DEVICE)
it returns true).
But when I call
Intent.GetExtra(EXTRA_DEVICE)
it always returns Null.
Am I missing something here?
Attached you can find an example project.