

Open Android Studio, and select Start a new Android Studio project.If you do not already have an Android application, follow these steps to set up a new project.

To explore more complex scenarios, see a completed working code sample on GitHub. For simplicity, it uses Single Account Mode only. This tutorial demonstrates simplified examples of working with MSAL for Android. MSAL will automatically renew tokens, deliver single sign-on (SSO) between other apps on the device, and manage the Account(s). This sample uses the Microsoft Authentication Library for Android (MSAL) to implement Authentication:.

Add code to call the Microsoft Graph API.Add code to support user sign-in and sign-out.Create an Android app project in Android Studio.
