Git Product home page Git Product logo

hms-location-demo-harmonyos's Introduction

harmony-location-demo

Table of Contents

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.

hms-location-demo-harmonyos's People

Contributors

xwr22 avatar mike-mei avatar syslogic avatar xuejiao-shi avatar xuxiapu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.