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
  • Yes. That's my goal. I want to have two physically separate bluetooth antennas. One is on-board, and the second bluetooth antenna is connected via powered USB cable at a distance of about 10m. I am currently trying to use the userial_init, userial_open and userial_read low level bluedroid calls, but I'm running up against hurdles. I was thinking that maybe the Nordic SDK might be better than the bluedroid one (it can hardly be any worse). At least the Nordic SDK is very well documented.

Children
No Data
Related