Broadcast Receivers in Delphi XE5 Android

妖精的绣舞 提交于 2019-12-01 04:58:15

问题


How to use broadcast receivers in Delphi XE5 Android? The documentation is very poor about the Delphi XE5 and Android integration.


回答1:


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!




回答2:


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.

See http://chuacw.ath.cx/blogs/chuacw/archive/2014/02/26/delphi-ide-broadcastreceiver-plug-in-for-android.aspx



来源:https://stackoverflow.com/questions/18891486/broadcast-receivers-in-delphi-xe5-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!