Java Question use of the serial libraries

onair

Member
Licensed User
Longtime User
After a few months I finally managed to get a library that compiles correctly with B4A. But now I have another problem I keep getting this message from the android on which the program is installed:

** Activity (main) Create, isFirst = true **
main_activity_create (java line: 336)
java.lang.UnsatisfiedLinkError: Native method not found: serialDWIN.serialDWIN.openDev:(I)Ljava/io/FileDescriptor;
at serialDWIN.serialDWIN.openDev(Native Method)
at b4a.example.main._activity_create(main.java:336)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
main_activity_create (java line: 336)
java.lang.UnsatisfiedLinkError: Native method not found: serialDWIN.serialDWIN.openDev:(I)Ljava/io/FileDescriptor;
at serialDWIN.serialDWIN.openDev(Native Method)
at b4a.example.main._activity_create(main.java:336)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)




I'm add B4A library, B4A project and the original Java library if someone has the time to help me where I'm wrong!
 

Attachments

  • serialDWIN.zip
    6.3 KB · Views: 262
  • Additional.zip
    6.7 KB · Views: 246
  • SerialJAB (1).zip
    7.6 KB · Views: 240

onair

Member
Licensed User
Longtime User
I do not know exactly, but the library was with the example that I received from the manufacturer
 

onair

Member
Licensed User
Longtime User
In the meantime, I managed to root the device. Does that mean that they can now use Java object as a super user and thus access and setup the serial interface?
 

onair

Member
Licensed User
Longtime User
Yes, is for sure Android library because it is part of a program written in Java and that nicely work on my Android computer. Unfortunately the whole ECLIPSE project is too large to send it to the forum. This is the only source in which is the main aćtivity, it should be the most important part of the project.
 

Attachments

  • src.zip
    4.8 KB · Views: 233

onair

Member
Licensed User
Longtime User
I am and tried everything, changed libs to lib, I adding additional folder. Practically everything what I read in the treads that are you recommended but nothing helps. After translating the SLC can not load libserialport.so. I can no longer trying this is the third month that can not solve this problem. If you can somehow help me to solve, help me, I'll probably give up. Just please no mysterious short sentences. I understand that you have a lot of work and you can not devote any problem a lot, especially if someone is a complete novice.
 

onair

Member
Licensed User
Longtime User
Yeah, I guess you're right. I think I deserve help since I bought B4A, B4i and recommended a customer to buy B4A. But no matter, in any case, thanks for the reply.

regards.
 
Top