FMXBroadcastReceiver (Android) is broken in Delphi 10 Seattle? What changed since XE7? -
to work usb-devices (on android-devices having usb-host) 1 has use broadcastreceiver. have found demo (https://github.com/freeonterminate/delphi/tree/master/broadcastreceiver). have tested on delphi xe10. wasted lot of time make work until discovered demo works on xe7 not on xe10.
"interface not supported" error occured during jfmxbroadcastreceiver creation (or near).
to demonstrate problem have created brand new simple project https://github.com/ashumkin/delphi-android-broadcastsample. works in xe7 (press "register" button create broadcast receiver catches , logs (see adb logcat) screen locking/unlocking. not work in xe10 - "interface not supported" occurs. in logcat can see
w/dalvikvm(31735): dvmfindclassbyname rejecting 'com/embarcadero/firemonkey/broadcast/fmxbroadcastreceiverlistener' w/dalvikvm(31735): dvmfindclassbyname rejecting 'com/embarcadero/firemonkey/broadcast/fmxbroadcastreceiver'
(but present in logcat of xe7-built app)
i tried remove xe7 version of androidmanifest.template.xml
, created .dproj-file in xe10, - nothing helps!.
wtf?
thanks!
https://github.com/barisatalay/delphi-android-broadcast-receiver-component works in delphi 10! has differences in details https://github.com/freeonterminate/delphi/tree/master/broadcastreceiver, there important working, can see.
Comments
Post a Comment