|
|
1 year ago | |
|---|---|---|
| .. | ||
| .gradle | 1 year ago | |
| .idea | 1 year ago | |
| app | 1 year ago | |
| gradle | 1 year ago | |
| images | 1 year ago | |
| LICENSE | 1 year ago | |
| README.md | 1 year ago | |
| Third Party Open Source Software Notice.doc | 1 year ago | |
| build.gradle | 1 year ago | |
| gradle.properties | 1 year ago | |
| gradlew | 1 year ago | |
| gradlew.bat | 1 year ago | |
| happiness.jks | 1 year ago | |
| local.properties | 1 year ago | |
| settings.gradle | 1 year ago | |
HUAWEI Location Kit sample code encapsulates APIs of the HUAWEI Location Kit. It provides many sample programs for your reference or usage.
We also provide an sample to demonstrate the use of LocationKit SDK for Android. This sample uses the Gradle build system. First download the demo by cloning this repository or downloading an archived snapshot. In Android Studio, use the "Open an existing Android Studio project", and select the directory of "huawei-location-android-demo". You can use the "gradlew build" command to build the project directly. You should create an app in AppGallery Connect, and obtain the file of agconnect-services.json and add to the project. You should also generate a signing certificate fingerprint and add the certificate file to the project, and add configuration to build.gradle. See the Configuring App Information in AppGallery Connect guide to configure app in AppGallery Connect.
Huawei phones with EMUI 5.0 or later, Huawei tablets, or non-Huawei phones with Android 5.1 or later.
huawei-location-android-demo is licensed under the Apache License, version 2.0.