Android Setup

Ensure that you've downloaded a copy of your airmap.config.json configured for your mobile app. Specifically make sure that you've added your application ID.

Start by adding the AirMap Android SDK to your project:

  • Add maven { url "" } to your project-level build.gradle file in the allprojects.repositories block

  • Add implementation 'com.airmap.airmapsdk:airmapsdk:3.0.0
    to your module-level build.gradle file

  • Add manifestPlaceholders = ['appAuthRedirectScheme': applicationId] to the defaultConfig section of your module level build.gradle file


Top-level build.gradle file

Place the airmap.config.json file that you previously downloaded inside your /assets directory. If you don't already have an assets directory, create it. It should be at the same level in the file structure as your java and res directories.


The location of the airmap.config.json file

Now, initialize the SDK in your Activity or Application. The SDK will get your API key from the config file that was added to the project.

Additionally if you want to use AirMapMapView, add your MapBox API key to your airmap.config.json and reference it when instantiating MapBox.


// Add this line when using Mapbox
Mapbox.getInstance(this, AirMapConfig.getMapboxApiKey());

Updated 3 years ago

What's Next

Add a map to your app

Create a Map (Mobile)

Android Setup

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.