GithubHelp home page GithubHelp logo

chandim / livesdk-for-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liveservices/livesdk-for-android

0.0 1.0 0.0 882 KB

Home Page: http://dev.live.com

License: MIT License

Java 100.00%

livesdk-for-android's Introduction

Live SDK for Android

version 5.6

  1. Introduction

The Live SDK for Android library is intended to help developers to easily integrate OneDrive and Outlook.com contacts into their Android apps.

For questions on how to use the sdk visit http://stackoverflow.com/questions/tagged/onedrive

  1. Reference the API

After you download the Android API source code, you must compile it. You need to do this only once. After you compile the Android API source code on your computer, you can reference it from multiple Eclipse Android projects on that same computer.

To compile the Android API source code

  • Start Eclipse, if it is not already running.
  • Click File > Import.
  • Expand General, click Existing Projects into Workspace, and then click Next.
  • With the Select root directory option selected, click Browse.
  • Go to and select the src folder within the downloaded Live SDK for Android, and then click OK.
  • In the Projects box, select the LiveSdk check box.
  • With the Copy projects into workspace check box selected, click Finish. Eclipse adds the LiveSdk project to the Package Explorer pane and then compiles the Android API source code in the background.
  • You can now reference the compiled Android API source code from your Eclipse Android projects.

To reference the compiled Android API source code in an Eclipse Android project

  • In Eclipse, display the Package Explorer pane, if it is not already visible.
  • Right-click your project's name, and then click Properties.
  • In the list of project properties, click Android.
  • In the Library area, click Add.
  • Click LiveSdk and then click OK.
  • Click OK. Eclipse sets a reference to the compiled Android API source code project, and you can now call the Live Connect Android API from your own Android project.

Note: Before you run your project, you must add the Internet permission to your project's manifest, as shown in the following steps. If you don't add the Internet permission, your app may have problems accessing Live Connect web services later.

  • With your project open, in the Package Explorer pane, open the AndroidManifest.xml file.
  • In the editor, click the Permissions tab.
  • Click Add.
  • Click Uses Permission, and then click OK.
  • the Name list, click android.permission.INTERNET.
  • Save the AndroidManifest.xml file.

Notes: The Java Compiler must be version 1.6 or higher.

  1. Documentation

Visit: http://dev.onedrive.com and click the "Documentation" link.

  1. Sample project

There is a sample project located in the sample directory. Using eclipse this project can be added using the File > Import > General > Existing Projects into Workspace wizard. Before the project can be properly used, the static variable com.microsoft.live.sample.Config.CLIENT_ID (see Config.java) must be changed to your own client ID. To obtain a Client ID, visit the [Live SDK App management page] (http://go.microsoft.com/fwlink/p/?LinkId=193157)

  1. Known issues:

  1. Login dialog is destroyed on screen rotation if the Activity is not set to ignore orientation changes in AndroidManifest.xml.

License Agreement

Copyright (c) 2014 Microsoft Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

livesdk-for-android's People

Contributors

cgollner avatar liwa avatar peternied avatar riksa avatar deepeshm avatar huangcd avatar mkoenig2203 avatar mehmet6parmak avatar rorybr avatar jeanine-msft avatar

Watchers

 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.