Android Question How to work with an all-in-one device

DonManfred

Expert
Licensed User
Longtime User
normally wlan oder lan
Maybe SERIAL
pro1.jpg


there should be a sdk for the unit components u have to wrap

Yes, i think there is one. See this.
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
@Erel
I've created the jar and xml file with SLC, I selected it from the Libs tab but I don't know how to continue to work with the library...can you help me please?
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
When I compile with SLC I obtain warnings like this:

"Working with class: com.wizarpos.apidemo.jniinterface.PrinterInterface
No ShortName annotation found for class: PrinterInterface"

@DonManfred Maybe is this the problem?
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
When I compile with SLC I obtain warnings like this:
"Working with class: com.wizarpos.apidemo.jniinterface.PrinterInterface
No ShortName annotation found for class: PrinterInterface"

@Erel How can I solve this problem? I tried to add "@ShortName("PrinterInterface")" to java file but I obtain this error:
"error: cannot find symbol
@ShortName("PrinterInterface")
^
symbol: class ShortName
Note: Some input files use or override a deprecated API."
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
@Erel How can I solve this problem? I tried to add "@ShortName("PrinterInterface")" to java file but I obtain this error:
"error: cannot find symbol
@ShortName("PrinterInterface")
^
symbol: class ShortName
Note: Some input files use or override a deprecated API."
Solved. I found out that it is necessary to add "import anywheresoftware.b4a.BA.ShortName;" to java file before @ShortName("...")
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
Now I have this problem when executing app:

B4X:
main_globals (java line: 290)
java.lang.NoClassDefFoundError: com.wizarpos.apidemo.jniinterface.PrinterInterface
    at b4a.example.main._globals(main.java:290)
    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.initializeGlobals(main.java:230)
    at b4a.example.main.afterFirstLayout(main.java:86)
    at b4a.example.main.access$100(main.java:16)
    at b4a.example.main$WaitForLayout.run(main.java:74)
    at android.os.Handler.handleCallback(Handler.java:605)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4424)
    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:784)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    at dalvik.system.NativeStart.main(Native Method)
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
Upvote 0
Top