Start a Conversation

Unsolved

This post is more than 5 years old

1015

April 5th, 2013 05:00

Developing Android Application

I've read through this post here: about atmos develop on android app but i still can't get the library to work with Android.

I need to get this api implemented into an android app but i keep getting the "Could Not Find Class" error. What exactly do you have to do to get this to work on android? I realized that the jdom library was an older version that was supposed to be incompatible with android but the new jdom 2 was suppose to work fine with it so i modified the source code for the emcesu library and recreated the jar file (i switched to using the older version of the library before the new interface since i read that the newer version was incompatible with android as well). I tested the jar file with a small little java program to ensure that it still works but still crashes my android application whenever i try to create a class for it. I even tried using ae-jaxb-2.2.5 library thats supposed to make JAXB work with android as well. I'm honestly completely stumped. I already have an app that performs its required functions that i need to implement cloud storage into. I've ran dry of any new ideas of what to do to make it work.

110 Posts

April 8th, 2013 10:00

bfike,

You shouldn't need to use an older version of the Atmos Java SDK on Android.  The latest release (currently 2.1.2 as of this post) should work if you use the EsuApi (deprecated) interface.  I would use the library dependencies that come with the SDK as well.  I'm not aware of a reason why JDOM wouldn't work on Android.  Assuming you use the EsuRestApi implementation, you will need the following libraries on your class path:

  • commons-coded-1.4.jar
  • jdom.jar (v1.1)
  • log4j-1.2.16.jar
  • security-1.1.jar
  • atmos-api-2.1.2.jar

These are in the lib and build folders of the SDK package.  Your instantiation line should look like this:

EsuApi atmos = new EsuRestApi("api.atmosonline.com", 80, "04ce6aa4f7264881a1c4281e93ce643d/A8147563146", "kG3XAgqFN8Ov8Im6UiGwSXsA75Q=");

This is just an example (these credentials will not work).

If you're still having problems, please post the exception line with at least 10 lines of stack trace.

No Events found!

Top