Closed GoogleCodeExporter closed 8 years ago
If you rename the package of a class containing native methods, you have to
rename the functions in the C++ code as well:
In class android.serialport.SerialPort, the two methods
- private native static FileDescriptor open(String path, int baudrate)
- public native void close()
are searched inside native code (SerialPort.c) with these specific names:
- Java_android_serialport_SerialPort_open(JNIEnv *env, jobject thiz, jstring
path, jint baudrate)
- void JNICALL Java_android_serialport_SerialPort_close
(JNIEnv *env, jobject thiz)
It is not a problem in android-serialport-api, I put the issue in "Invalid"
state.
Original comment by cedric.p...@gmail.com
on 25 Oct 2011 at 10:12
Original issue reported on code.google.com by
leebg...@gmail.com
on 22 Jul 2011 at 10:49