- Jun 6, 2020
- 11,559
- 4,422
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
Unfortunately in the starting intent of my service I'm not able to extract these information.
If I call
B4X:
it returns an android Bundle with some data, included the EXTRA_DEVICE extra (in fact if I call
B4X:
it returns true).
But when I call
B4X:
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
برای دیدن لینک ها باید ثبت نام کنید
they said that the Broadcast Action "Always contains the extra fields
برای دیدن لینک ها باید ثبت نام کنید
and
برای دیدن لینک ها باید ثبت نام کنید
".Unfortunately in the starting intent of my service I'm not able to extract these information.
If I call
B4X:
Intent.ExtrasToString
it returns an android Bundle with some data, included the EXTRA_DEVICE extra (in fact if I call
B4X:
Intent.HasExtra(EXTRA_DEVICE)
it returns true).
But when I call
B4X:
Intent.GetExtra(EXTRA_DEVICE)
it always returns Null.
Am I missing something here?
Attached you can find an example project.
برای دیدن لینک ها باید ثبت نام کنید