# Appstax Android SDK

This is the official SDK for [Appstax](https://appstax.com).
Please read the [Android Guide](https://appstax.com/docs/Android-SDK-Guide) to get up and running.

## Installing

The easiest way to get started, is to try out the Android Studio project in `examples/basic`.

Here's how you can add the SDK to an existing Android project:

* [Sign up for an account](http://appstax.com/)
* [Download the SDK](https://github.com/Appstax/appstax-android/releases)
* Add the `dist/appstax-android.jar` file to your `libs` folder.
* Add the dependency to your build file, and set the correct permissions:

```xml
// in app/build.gradle:
dependencies {
    compile files('libs/appstax-android.jar')
}

// in AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
```

## Example usage

```java
Appstax.setAppKey("YourAppKey");

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

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

See the [Android Guide](https://appstax.com/docs/Android-SDK-Guide) for more info on how to set up your app and data model.


License
-------

[MIT License](LICENSE)


# Appstax Android SDK

This is the official SDK for [Appstax](https://appstax.com).
Please read the [Android Guide](https://appstax.com/docs/Android-SDK-Guide) to get up and running.

## Example

```java
Appstax.setAppKey("YourAppKey");

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

Appstax.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](LICENSE)


Remove duplicate info from readme
Remove duplicate info from readme
