Visual Studio Mobile Center


The Android SDK supports API levels 19 through 24 (KitKat through Nougat).

You will need:

  • your Mobile Center app secret, which you can find at by going to Mobile Center > your app > Getting Started > Manage app > App secret.

Add Azure Android SDK to your app

  1. Add this code to the Project level build.gradle file inside the buildscript tag:
    buildscript {
     repositories {
  2. Add this code to the Module app level build.gradle file inside the dependencies tag:
     compile ''
  3. To access Azure, your app must have the INTERNET permission enabled. If it’s not already enabled, add the following line of code to your AndroidManifest.xml file:
     <uses-permission android:name="android.permission.INTERNET" />
  4. Create an MSClient in your app to work with Azure features.
    MobileServiceClient azureMobileClient = new MobileServiceClient(
     "_https://mobile-{app secret}.azurewebsites.net_", this)

Use Azure features in your app

Documentation References