I've been working on implementing an existing java connector for the EMC Atmos API for cloud storage into B4A. Here is the link to it:
https://code.google.com/p/atmos-java/
I'm using the deprecated EsuRestApi since the newest version is currently incompatible with android.
I have managed to get the library to work through a simple Android application using only java but when implementing the jar file to b4a, it won't work using the exact same code. I understand HTTP connections must be done on separate threads in Android and basic4android has its own submitrunnable method to run the threads and I've tried it all.
The app gets hung up here when running the method to initialize the EsuRestApi class object:
try{
api = new EsuRestApi(host, port, uid, secret);
} catch(EsuException ex) {
}
Now, if I implement the source code directly for the java connector(which is how I got my simple java android app to work), this is the error I get:
java.lang.VerifyError: com/emc/esu/api/rest/EsuRestApi
If I use the jar file for it, I get no errors. It is like the moment the code gets to that line of code, the code just stops altogether.
Using my little java app, I can run this line of code initializing the api object on the main thread since its not actually making a connection but no matter what I do, I can't get past that line in basic4android. Anyone have any ideas on why this is?