M
marydeepthy
Hi,
i have a native method, as folowws:
JNIEXPORT jobjectArray JNICALL l2cap_L2CAPImpl_L2CAOpen
(JNIEnv *env, jobject obj, jbyteArray dev, jstring service, jboolean
auth, jboolean crypt)
{
unsigned char address[6];
}
the value of address is the same as jbyteArray dev, which is passed
from the java program. i have to convert the jbytearray to this char
array. how can i do this. i am completely new to JNI and this native
calls are only a small part of my big project..so please do help me...
i have a native method, as folowws:
JNIEXPORT jobjectArray JNICALL l2cap_L2CAPImpl_L2CAOpen
(JNIEnv *env, jobject obj, jbyteArray dev, jstring service, jboolean
auth, jboolean crypt)
{
unsigned char address[6];
}
the value of address is the same as jbyteArray dev, which is passed
from the java program. i have to convert the jbytearray to this char
array. how can i do this. i am completely new to JNI and this native
calls are only a small part of my big project..so please do help me...