Git Product home page Git Product logo

o365-android-connect's Introduction

Office 365 Connect Sample for Android

Build Status

日本 (日本語) (Japanese)

Office 365 Connect sample

Connecting to Office 365 is the first step every Android app must take to start working with Office 365 services and data. This sample shows how to connect and then call one API.

Device requirements

To run the Connect sample, your device needs to meet the following requirements:

  • A screen size of 800 x 480 or larger.
  • Android API level 15 or later.

Prerequisites

To use the Office 365 Connect sample for Android you need the following:

  • Android Studio version 1.0 or later.
  • An Office 365 account. You can sign up for an Office 365 Developer subscription that includes the resources that you need to start building Office 365 apps.
  • A client id and redirect uri values of an application registered in Azure. The application must run the Send mail as a user permission:

You can also add a native client application in Azure and grant proper permissions to it.

Open the sample using Android Studio

  1. Install Android Studio and add the Android SDK packages according to the instructions on developer.android.com.

  2. Download or clone this sample.

  3. Start Android Studio.

    1. Select Open an existing Android Studio project.
    2. Browse to your local repository and select the O365-Android-Connect project. Click OK.
  4. Open the Constants.java file.

    1. Find the CLIENT_ID constant and set its String value equal to the client id you registered in Azure Active Directory.
    2. Find the REDIRECT_URI constant and set its String value equal to the redirect URI you registered in Azure Active Directory. Office 365 Connect sample

    Note: If you have don't have CLIENT_ID and REDIRECT_URI values, add a native client application in Azure and take note of the CLIENT_ID and REDIRECT_URI.

Once you've built the Connect sample, you can run it on an emulator or device.

To learn more about the sample, visit our understanding the code wiki page. If you just want to use this code sample in your app, visit the Using the O365 Android Connect sample code in your app.

Questions and comments

We'd love to hear your feedback on this Connect sample for Android. Here's how you can send your questions and suggestions to us:

Next steps

This sample just shows the essentials that your apps need to work with Office 365. There is so much more that your apps can do using the Office 365 APIs, like helping your users to manage their work day with calendar, find just the information they need in all the files they store in OneDrive, or find the exact person they need from their list of contacts. We have more to share with you in the Office 365 APIs Starter Project for Android. We think it can help you fuel your ideas.

Additional resources

Copyright

Copyright (c) 2015 Microsoft. All rights reserved.

o365-android-connect's People

Contributors

davidchesnut avatar iambmelt avatar jamescro avatar ricalo 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.