Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hms-core/hms-location-demo-harmonyos
Huawei HarmonyOS sample code implements the API invoking of Location Kit open capabilities, facilitating your experience of related functions.
https://github.com/hms-core/hms-location-demo-harmonyos
harmonyos hms huawei java location locationkit
Last synced: about 2 months ago
JSON representation
Huawei HarmonyOS sample code implements the API invoking of Location Kit open capabilities, facilitating your experience of related functions.
- Host: GitHub
- URL: https://github.com/hms-core/hms-location-demo-harmonyos
- Owner: HMS-Core
- License: apache-2.0
- Created: 2021-10-08T03:11:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-14T11:41:16.000Z (over 1 year ago)
- Last Synced: 2024-04-16T12:54:17.646Z (9 months ago)
- Topics: harmonyos, hms, huawei, java, location, locationkit
- Language: Java
- Homepage:
- Size: 633 KB
- Stars: 15
- Watchers: 9
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## harmony-location-demo
## Table of Contents
* [Introduction](#introduction)
* [Getting Started](#getting-started)
* [Installation](#installation)
* [Supported Environments](#supported-environments)
* [Sample Code](#sample-code)
* [Result](#result)
* [License](#license)
## Introduction
The Huawei location sample code encapsulates the Huawei location API. It provides a number of sample programs for your reference or use.
## Getting Started
We also provide an example to demonstrate the use of the LocationKit SDK for HarmonyOS.
This example builds the system using Gradle.
First, demonstrate by cloning this code repository or downloading a zip package.
In DevEco Studio, use "Open an existing DevEco Studio project" and select the "harmony-location-demo" directory.
You can use the "gradlew signReleaseHap" command to build the project directly.## Installation
1. Clone or download the project and open the downloaded folder in DevEco Studio.
2. Use DevEco Studio to install the configured project on the device.
## Supported Environments
HMS Core (APK) 6.0.0 or later has been installed on the Huawei Smartwatch.## Sample Code
1.Invoke requestLocationUpdates of FusedLocationProviderClient to add a location request. Code location in src/main/java/com/huawei/sample/harmony/location/slice/RequestLocationCallbackAbilitySlice.java## Result
## License
harmony-location-demo is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).