Get Started With Sample Apps
Prerequisites
- You have Android Studio installed.
- You have a basic understanding of Android development and Kotlin programming language.
- You have created an API key.
Create and use an API key
Follow our step-by-step guide to sign up for a free account, create a project, generate your API key and start building your Android solution.
If the API key is not configured, some features will be restricted, and a watermark will appear on the map. Functionality such as map downloads, updates, and other features may be unavailable or may not function as expected. Please ensure the API token is set correctly. Ensure the API key is stored securely and protected against unauthorized access or exposure.
Get the examples
-
Download the Magic Lane Maps SDK Examples for Android repository from Github
-
Browse through the sample applications - each one showcases different Maps SDK features to help you get started quickly
Build and run the examples
After downloading the examples, choose the sample app you want and open the project in Android Studio.
An API key must be put in the AndroidManifest.xml file, inside the <application> tag. Replace <token> with your actual API key token.
<meta-data
android:name="com.magiclane.sdk.token"
android:value="<token>"/>
Synchronize your project with Gradle files and run the app on an emulator or a physical device.