Give you a example. Jni cpp impletements almost task, but requrie calling some function written by Java.
Jni cpp: https://github.com/freeors/SDL/blob/master/SDL2-2.0.5/src/peripheral/android/SDL_sysble.c
Relative Java: https://github.com/freeors/Rose/blob/master/apps-src/apps/projectfiles/android-prj/app/src/main/java/org/libsdl/app/SDLActivity.java
Sorry, I havn't code that operats lower bluetooth version.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/b232c1ab-c6be-4b11-be3a-b9f3cd5a0482%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.