EurigJones / app55-android

Example use of the app55-java library on the Android platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App55 Android Example

This is an example use of the app55-java library on the Android platform. Please see https://www.app55.com/docs for information on specific service endpoints for what you need to do.

Revision History

  • 1.0 Initial release.

Dependencies

  • app55-java v0.8.4 or greater. Included in this example.
  • Jackson Core / Mapper 1.9.x. Included in this example.

Running

Running this example requires an Android 4.0 or greater compatible emulator or device.

  1. Create an App55 account to get your API Key and Secret.
  2. Checkout this project.
  3. This is an Eclipse project, so you can just import it into Eclipse as an existing project.
  4. Modify Configuration.java with your API_KEY_DEFAULT and API_KEY_SECRET.
  5. Compile and deploy the application, and click run to execute the test script.

Notes

  • The example requires Android 4.0 or greater. This is due to bugs in java.net.URLConnection on Android versions prior to Honeycomb.
  • You can use your preferred network stack such as HttpClient or OkHttp by creating an implementation of HttpAdapter (part of the app55-java project) and passing it as a parameter when you create your Gateway instance.
  • The DefaultHttpAdapter uses an ExecutorThreadPool to implement asynchonous requests due to compatibility with multiple platforms. But by implementing your own HttpAdapter or subclassing DefaultHttpAdapter you can choose your own way of doing background requests that suit your app architecture.

About

Example use of the app55-java library on the Android platform.


Languages

Language:Java 100.0%