Giter VIP home page Giter VIP logo

xamarinandroido365's Introduction

page_type products languages extensions
sample
office-365
csharp
contentType createdDate
samples
11/7/2014 5:54:20 PM

Xamarin Android Office 365 API Sample

###Introduction

This sample shows how to use query Office 365 API service from a Xamarin Android project.

The sample builds a Xamarin binding to ADAL's native Android Library. The generated binding is then referenced by specific Android projects to authenticate and get tokens for Office 365 API resources.

ADAL team is planning on adding more robust support to Xamarin projects, but until then, Xamarin bindings will help you build the ADAL library you need for your Android projects. You can download and use ADAL v3.0 preview if you are interested to see ADAL vNext. ADAl v3.0 is a PCL and comes with support for Xamarin Android and iOS projects as well. However, please remember that ADAL v3.0 is still a preview and is not recommended to use in production. Here is an ADAL sample that uses ADAL v3.0 preview.

This sample has threee projects:

####XamarinOffice365.AdalBindings This is the actual Xamarin binding project. Read more here to understand how to build the Xamarin binginds project with the latest ADAL Android Library.

####XamarinOffice365.AndroidHelloworld A simple Xamarin Hello World that authenticates and gets a token for Office 365 API discovery service. Useful if you want to have a simple project for getting started with using the ADAL Bindings for Xamarin Android.

####XamarinOffice365.Droid This project describes the code to interact with the Exchange Contacts API and query your contacts.

How to Run this Sample

To run this sample, you need:

  1. Visual Studio 2013
  2. Office 365 Developer Subscription

Step 1: Clone or download this repository

From your Git Shell or command line:

git clone https://github.com/OfficeDev/XamarinAndroidO365.git

Step 2: Build the XamarinOffice365.AdalBindings Project

  1. Open the project in Visual Studio 2013.
  2. Go to XamarinOffice365.AdalBindings project node.
  3. Build the XamarinOffice365.AdalBindings project.

Step 4: Configure XamarinOffice365.Droid Project

Manually Register an Azure AD Application

Follow the steps here to manually register an application for your Android client application and copy the following from the portal:

  1. Client Id
  2. Redirect URI

Under permissions to other applications, select Office 365 Exchange Online as the application and set the following permissions Read users' contacts.

Update MainActivity.cs

Insert the copied Client Id and Redirect URI in the respective variables where it says:

internal string ClientId = "[insert-your-client-id]";
internal string RedirectUri = "[insert-your-redirect-uri]";

Build and Debug the Application

Hit Debug or Press F5 to build and debug the application!

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

xamarinandroido365's People

Contributors

chakkaradeep avatar davidchesnut avatar o365devx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xamarinandroido365's Issues

[Action Needed] This repo is inactive

This GitHub repository has been identified as a candidate for archival

This repository has had no activity in more than [x amount of time]. Long periods of inactivity present security and code hygiene risks. Archiving will not prevent users from viewing or forking the code. A banner will appear on the repository alerting users that the repository is archived.

Please see https://aka.ms/sunsetting-faq to learn more about this process.

Action

✍️

❗**If this repository is still actively maintained, please simply close this issue. Closing an issue on a repository is considered activity and the repository will not be archived.🔒

If you take no action, this repository is still inactive 30 days from today it will be automatically archived..

Need more help? 🖐️

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.