Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change package name (android.serialport.sample) #10

Closed
GoogleCodeExporter opened this issue Jun 24, 2015 · 1 comment
Closed

change package name (android.serialport.sample) #10

GoogleCodeExporter opened this issue Jun 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

hello,

I created a new package, name it as android.prototype
after that I move all the class inside the android.serialport.sample to 
android.prototype
I change the manifest.xml as well to android.prototype

the program run well, but it always show error "Please configure your serial 
port first" even though i already did...

how to fix this problem?

thank you

Original issue reported on code.google.com by leebg...@gmail.com on 22 Jul 2011 at 10:49

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant