Giter VIP home page Giter VIP logo

cumulocity-android-client-lib's Introduction

!!! 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.

cumulocity-android-client-lib's People

Contributors

johnpcarter avatar techcommunity avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.