Charles
Charles

Reputation: 35

Codename One How to add BLE extension

I developed a mobile app using CN1's BLE library. The BLE api did not work after I've added the library that I've downloaded from https://github.com/chen-fishbein/bluetoothle-codenameone, however, I solved this issue by adding the library using CN1's settings/extensions UI instead of manually copying the downloaded libs after I've found the EvSunWoodard's comment here Codenameone Bluetooth APIs not working on android.

CN1 recently updated and I'm stuck with the same problem after I've added the BLE extension using the new and old settings UI. When I try to call any bluetooth method, the app does not respond and does not catch any exeptions - it simply does nothing. I've noticed that the new settings UI adds a new java package to the impl/stubs library that did not use to be there before the update, I've tried removing this package, as the bluetooth.class file is still there, but this did not have any affect.

Anyone have any ideas on how to get the BLE library working again?

Upvotes: 2

Views: 252

Answers (1)

steve hannah
steve hannah

Reputation: 4716

The most current repo with the bluetoothle lib is https://github.com/codenameone/bluetoothle-codenameone

It is a couple of commits ahead of the fork you used. It should work for you. However, it is the same version that you'll get by simply downloading it through Codename One preferences.

Upvotes: 4

Related Questions