Android client library (v.28+ PIE) for the Cumulocity API.
You can download the .aar library as follows
In Android Studio, from the File Menu -> New -> New Module -> Import .JAR/.AAR Package
Then select the .aar file that you have downloaded and that's it
If you want to download the source code to build the library yourself
$ git clone https://github.com/SoftwareAG/cumulocity-android-client-lib.git
The library was built using Android Studio 3.6.2
CumulocityConnectionFactory.connection(<tenant>, <instance e.g. cumulocity.com>).connect(<user>, <password>) { connection, responseInfo ->
ManagedObjectsService(connection).managedObjectsForType(0, "c8y_DeviceGroup") { results ->
val status: Int = results.status
val failureReason: String? = if (status == 500)
results.reason
else
null
val objects: List<ManagedObject> = results.content
}
}
Detailed documentation is available here
Please note that this project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.