Git Product home page Git Product logo

sami-android's Introduction

SAMI Android SDK

This SDK helps you connect your Android apps to SAMI. The SDK helps authenticating with SAMI, exposes a number of methods to easily execute REST API calls to SAMI and supports a WebSockets controller.

Prerequisites

The SDK was developed with Eclipse and Maven and tested with Android 4.4.2. When building Maven will fetch the correct libraries. You might be able to build the SDK in a different environment and we would be happy to hear about your (success) stories.

Installation

In Eclipse,

  • import the SDK library project as "Existing Maven Projects".
  • right click the project, and choose "Run As" then "Maven install"

After the installation succeeds, you can use the generated libraries in one of the following ways depending on your scenario:

  • To use them in an Android project, copy libraries under target and target/lib directories of the imported Maven project to libs directory in your Android project.
  • To use them in your Maven project, modify pom.xml file in your project to add dependency to sami-android-xxx.jar under target of the imported Maven project as following
<dependency>
   <groupId>io.samsungsami</groupId>
   <artifactId>sami-android</artifactId>
   <version>the actual version number</version>
</dependency>

Finally, in your Android project's AndroidManifest.xml, add the permissions required by the SDK library. You could accomplish this automatically if you are using manifest merger (manifestmerger.enabled, requires SDK tools rev 20 or above).

<uses-permission android:name="android.permission.INTERNET" />

You're ready to go.

Usage

The easiest way to start using the SAMI Android SDK is to look at our sample applications, these will give you a good overview of what you can do and how to do it. Read more about it at

More about SAMI

If you are not familiar with SAMI we have extensive documentation at http://developer.samsungsami.io

The full SAMI API specification with examples can be found at http://developer.samsungsami.io/sami/api-spec.html

We blog about advanced sample applications at http://blog.samsungsami.io/

To create and manage your services and devices on SAMI visit developer portal at http://devportal.samsungsami.io

Licence and Copyright

Licensed under the Apache License. See LICENCE.

Copyright (c) 2015 Samsung Electronics Co., Ltd.

sami-android's People

Contributors

yujingwu avatar

Watchers

James Cloos avatar Tim Newsom 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.