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.
- 1.0 Initial release.
- app55-java v0.8.4 or greater. Included in this example.
- Jackson Core / Mapper 1.9.x. Included in this example.
Running this example requires an Android 4.0 or greater compatible emulator or device.
- Create an App55 account to get your API Key and Secret.
- Checkout this project.
- This is an Eclipse project, so you can just import it into Eclipse as an existing project.
- Modify
Configuration.java
with yourAPI_KEY_DEFAULT
andAPI_KEY_SECRET
. - Compile and deploy the application, and click run to execute the test script.
- 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 yourGateway
instance. - The
DefaultHttpAdapter
uses an ExecutorThreadPool to implement asynchonous requests due to compatibility with multiple platforms. But by implementing your ownHttpAdapter
or subclassingDefaultHttpAdapter
you can choose your own way of doing background requests that suit your app architecture.