We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
GuidesMap KitAndroidGetting Started

Getting Started

Quick Tutorial

Before developing your app, you can follow instructions in the codelab to experience how to quickly integrate this kit into an app.

Development Environment

  • JDK version: 1.8 or later
  • Android Studio version: 3.6.1 or later

    • minSdkVersion: 19 or later
    • targetSdkVersion: 33 (recommended)
    • compileSdkVersion: 33 (recommended)
    • Gradle version: 5.6.4 or later (recommended)

      Android Gradle plugin version: 3.6.0 or later

  • Test device: a Huawei phone or tablet running EMUI 5.0 or later, or a non-Huawei phone running Android 7.0 to 13

Development Process

Follow the steps in the following process when you develop an app.

Expand

No.

Step

Description

1

Configuring App Information in AppGallery Connect

Configure app information in AppGallery Connect, including Registering as a Developer, Creating a Project, Creating an App, Generating a Signing Certificate Fingerprint, Configuring the Signing Certificate Fingerprint, Enabling Required Services, and Obtaining the API Key.

2

Integrating the HMS Core SDK

Integrate the HMS Core SDK into your app.

3

Configuring Obfuscation Scripts

Before building the APK, configure the obfuscation configuration file to prevent the HMS Core SDK from being obfuscated.

4

Adding Permissions

Declare permissions for using capabilities of Map Kit.

5

Map Creation

Use a map container to quickly obtain a map object, change the map type, display the my-location icon on the map, and enable the map's lite mode.

Map Interaction

Customize how users interact with your map by enabling or disabling map interaction gestures and specifying the visibility of built-in UI controls.

Drawing on a Map

Draw markers, overlays, and shapes on a map.

Map Style Customization

Add a custom map to your app.

6

Migration From Google Maps to HMS Core Map Kit

Migrate the Google Maps SDK for Android to the HMS Core Map SDK for Android in your Android app, starting with basic environment settings.

7

Pre-release Check

Use the tool offered by Huawei to automatically check your app before release.

8

App Release

Complete your app information in AppGallery Connect, and submit your app for release.

HMS Toolkit provides end-to-end tools (including those for app creation, free real-device debugging, and releasing) that you need to develop your own HMS Core-integrated app and release it, with lower costs and higher efficiency.

If you want to integrate Map Kit using HMS Toolkit, follow the instructions here.

Search in Guides
Enter a keyword.