Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Android v.28 library (.aar) to allow you leverage your Cumulocity Platform when developing your apps

Notifications You must be signed in to change notification settings

SoftwareAG/cumulocity-android-client-lib

Repository files navigation

!!! Archived -- this repository is archived and currently not actively maintained!

Android Cumulocity Client Library

Android client library (v.28+ PIE) for the Cumulocity API.

Installation

You can download the .aar library as follows

Direct apk download

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

Example

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
    }
}

Documentation

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.

About

Android v.28 library (.aar) to allow you leverage your Cumulocity Platform when developing your apps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages