How to use broadcast receivers in Delphi XE5 Android? The documentation is very poor about the Delphi XE5 and Android integration.
Asked
Active
Viewed 4,368 times
4
-
@LURD - why not posting this as an answer? – RBA Sep 19 '13 at 11:14
2 Answers
2
Currently there is no support in XE5 for broadcast receivers.
It is needed in order to get the BlueTooth API implemented, for example.
Some attempts can be found here
.
Update:
Markus Humm filed two QC requests to get this working.
QC 118435 Provide the ability to inherit from a Java class
and
QC 118683 Provide Delphi side implementation for Android.BluetoothAdapter
.
Vote for them!

LU RD
- 34,438
- 5
- 88
- 296
-
FYI, 2 broadcast receivers are implemented in my service sample at http://blog.blong.com/2013/11/delphi-and-android-services-part-2.html – blong Nov 27 '13 at 14:25
-
@blong, nice work. I will study the examples and see if there is a possibility to get Bluetooth communication working. – LU RD Nov 27 '13 at 14:59
-
It should quite feasible, if slightly tricky. It has been on my to do list to get the Bluetooth Chat sample kinda ported over, but haven't had opportunity thus far... – blong Nov 28 '13 at 14:41
1
I've written a BroadcastReceiver plug-in for Delphi XE5 that provides such support. The plug-in does everything required to support BroadcastReceiver development during run-time.

chuacw
- 1,685
- 1
- 23
- 35