How could I use the android Bluetooth api in cocos2dx?

I am a newbie of cocos2dx and android developers, I want to use the android bluetooth function in my application, but I can’t find the related examples about how to use the android bluetooth api(in java) in cocos2dx C++ code, such as send data,recieve the data. (though I have find the jni, but I still confuse about this) Could anyone give me an example code of this kind of usage pls?
Thanks!

You can take look at these files
* CocosDenshion/android/jni/SimpleAuioEngineJni.cpp
* tests/test.android/src/org/cocos2dx/lib/Cocos2dxActivity.java
* tests/test.android/src/org/cocos2dx/lib/Cocos2dxMusic.java

They shows how to invoke java APIs from ndk c++ layer.