Skip to content

Appstax/appstax-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appstax Android SDK

Build Status Download

This is the official Android SDK for AppStax.

It's a new SDK, so let us know if you encounter any issues.

Check out the Android SDK Guide to get started.

Installation with Gradle

Add the SDK as a dependency in your app's build.gradle file:

dependencies {
    compile 'com.appstax:appstax-android:+'
}

This assumes you're using the standard jcenter repository.

Usage example

Appstax ax = new Appstax("key");

AxObject object = ax.object("Contacts");
object.put("name", "Foo McBar");
object.put("email", "foo@example.com");

ax.save(object, new Callback<AxObject>() {
    public void onSuccess(AxObject object) {
        showMessage("saved", object.get("name"));
    }
    public void onError(AxException e) {
        showMessage("error", e.getMessage());
    });
});

License

MIT License