Hi,
Im tying to create a library from my suppliers SDK
This SDK i can compile and run in Eclipse Project
without any issues.
Im trying to create a wrapper for B4A (which i have done for other SDK's)
but im having a few problems with this one..
The SDK uses 3 libraries under the /lib folder
/lib/android-support-v4.jar
/lib/DeviceAPI.jar
/libs/armeabi/libDeviceAPI.so
I have confirmed these are in the File.DirInternal directory of the project when running
The .jar in the lib folder seem to be loaded by
import com.rscja.deviceapi.Barcode1D;
import com.rscja.deviceapi.exception.ConfigurationException;
(in my java wrapper)
I use
System.load(File.Combine(File.getDirInternal(), "libDeviceAPI.so"));
(in my java wrapper)
To load the Library.. but should i? does the import take care of the load? (im not sure)
I have cut my A4b Project to bare minimum for testing and this post,
All my AB4 Project has is the DIM statement to the library class
(ie:
dim c as c4000, where c4000 is my library)
When i launch my AB4 app, In the logcat i see
D/dalvikvm(16532): threadid=11: interp stack at 0x4df55000[/INDENT]
D/dalvikvm(16532): threadid=11: calling run()
I/dalvikvm(16532): Could not find method com.rscja.deviceapi.Barcode1D.getInstance, referenced from method com.android.barcode1d.c4000.init
W/dalvikvm(16532): VFY: unable to resolve static method 1951: Lcom/rscja/deviceapi/Barcode1D;.getInstance ()Lcom/rscja/deviceapi/Barcode1D;
D/dalvikvm(16532): VFY: replacing opcode 0x71 at 0x0002
note:
.getInstance is referenced within a class in my wrapper, but not called (yet)
This seems to be at the point of the
'dim c as c4000' statement in AB4 project..
and seems to be
Before Activity_Create in AB4
Needless to say, the AB4 project fails with errors..
but for now i think i need to sort out the above issue before i move on to the next issue.
i hope this i understandable, im not that good at java.
Any help is very much appreciated
Lee.