GithubHelp home page GithubHelp logo

mitchdroid / apigee-android-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apigee/apigee-android-sdk

0.0 2.0 0.0 28.17 MB

Consolidated Apigee Android SDK with Usergrid and APM.

License: Apache License 2.0

apigee-android-sdk's Introduction

Apigee Android SDK Overview

Build Status

There are 2 main areas of functionality provided: (1) AppServices (Usergrid), and (2) App Monitoring. App Services provides server-side storage functionality. App Monitoring provides crash reporting, error tracking, application configuration management, and network performance monitoring. You may use both of these areas or decide to just use one of them.

Installing the SDK

To initialize the App Services SDK, do the following:

  1. Add 'apigee-android-.jar' to the build path for your project.
  2. Add the following to your source code to import commonly used SDK classes:
    import com.apigee.sdk.ApigeeClient;
    import com.apigee.sdk.data.client.DataClient;
    import com.apigee.sdk.apm.android.MonitoringClient;
    import com.apigee.sdk.apm.android.AndroidLog;
    import com.apigee.sdk.data.client.callbacks.ApiResponseCallback;
    import com.apigee.sdk.data.client.response.ApiResponse;  
  1. Add the following to your 'AndroidManifest.xml':
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  1. If it is present in your project, remove 'android.util.log'. The 'AndroidLog' class of the App Services SDK replaces the functionality of 'android.util.log'.
  2. Instantiate the 'ApigeeClient' class to initialize the App Services SDK:
    //App Services app credentials, available in the admin portal
    String ORGNAME = "your-org";
    String APPNAME = "your-app";
    ApigeeClient apigeeClient = new ApigeeClient(ORGNAME,APPNAME,this.getBaseContext());    

Once the SDK has been initialized, App Services will automatically begin logging usage, crash and error metrics for your app. This information can be viewed in the App Services admin portal for your account.

Building From Source

To build from source using Gradle, issue this command from the 'source' directory of your repository:

	gradle shadowJar

Running Unit Tests

To run unit tests using Gradle, issue this command from the 'source' directory of your repository:

    gradle test

The results of the tests can be seen by looking at the created file located at 'source/build/reports/tests/index.html'.

New Functionality for Usergrid

New classes (Collection, Entity, Device, Group in package com.apigee.sdk.data.client.entities) to make working with entities and collections easier. The functionality has been modeled after our JavaScript and PHP SDKs.

Migrating from Usergrid

(1) Package names have changed from org.usergrid.java.client and org.usergrid.android.client to com.apigee.sdk.data.client. (2) Client is now named DataClient (package com.apigee.sdk.data.client) (3) Initialization is performed with ApigeeClient (new class in package com.apigee.sdk)

apigee-android-sdk's People

Contributors

amuramoto avatar robertwalsh avatar prabhatjha avatar pdardeau avatar theganyo avatar zznate avatar shawnfeldman avatar

Watchers

James Cloos avatar Miller Barrera 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.