目录

Android Sample Code

The Map SDK for Android provides a set of APIs for map development in Android. The map data covers most countries and regions outside the Chinese mainland, and supports multiple languages. Map Kit uses the WGS 84 GPS coordinate system, which can meet most map development requirements outside the Chinese mainland. It allows you to easily add map functions to your Android app. Click here to learn more.

The sample code covers the usage of most Map Kit APIs. Guided by the demo, you will learn how to implement the following functions:

Sample Code

Find It on Gitee

Find It on GitHub

Android Studio sample code (for Java and Kotlin)

Click here

Click here

Before using the sample code, read the README file in the sample project carefully. Run the sample code only after you complete the following operations:

  1. Sign in to AppGallery Connect, download the agconnect-services.json file of your app, and copy the file to the app directory of the sample project.

  2. Open the build.gradle file in the sample project, and change the value of applicationId to your app package name.