clojure-android / neko

The Clojure/Android Toolkit
Other
297 stars 36 forks source link

Any suggestions for reading Bluetooth? #27

Closed BorisKourt closed 10 years ago

BorisKourt commented 10 years ago

Hello and thank you for the great library.

I haven't been able to figure out the best way to interface directly with the android API, specifically I need to access the Bluetooth functionality. (http://developer.android.com/reference/android/bluetooth/package-summary.html)

Looking through your documentation I don't see any sensor interfacing (could be missing it). So I assume that Neko doesn't have built in Bluetooth interaction.

Is it possible to do this via direct interop? If so how would you suggest I start?

Thanks, -Boris

alexander-yakushev commented 10 years ago

Hello Boris,

There's currently no functionality in Neko that adapts interaction with Bluetooth. Although you can freely use Java interop to do what you need. The link you provided (and particularly http://developer.android.com/guide/topics/connectivity/bluetooth.html) contains the necessary Java code to work with Bluetooth. From a short glance there doesn't seem to be any difficult interop mechanics.

If you have any questions on Android-specific Java interop, feel free to ask.

BorisKourt commented 10 years ago

Thanks for your reply Alexander.