This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android NDK Support?

I need to write some code at the NDK level to access some Bluetooth features that aren't exposed at the Java level. For example, I want to have a 2nd bluetooth adapter on my Android device. I looked at the SDK download and the Github Android samples and there isn't anything obvious there to help. Is there any C code or SDK/API docs that can be used? I looked at getting the card and SDK from a supplier but they didn't know if there would be any Android driver support either, and suggested that I come here for guidance. Any ideas would be appreciated. Right now, I just building my application using generic code that accesses the bluedroid headers in the NDK, and it's very painful! Thanks.

Parents Reply
  • Thanks for the suggestions. I had suggested #1 before, and that's not a cost effective solution for my situation. Looking at the Android Blueooth (Bluedroid) internals, I think it should be possible, but pretty hard. But, the Bluedroid stuff is some poorly documented, and buggy, it's a daunting task. I have the nRF51-Dongle, and it's at least recognized by my Android device when I plug it in. I bet that you could get it working with your SDK as a research project. But, I guess I will keep hacking away at the Bluedroid.

Children
No Data
Related