Giter VIP home page Giter VIP logo

aliakbarrashidi / hms-location-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hms-core/hms-location-demo

0.0 0.0 0.0 4.65 MB

HUAWEI Location Kit sample code encapsulates APIs of the HUAWEI Location Kit. It provides many sample programs for your reference or usage.

Home Page: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/location-introduction?ha_source=hms1

Java 100.00%

hms-location-demo's Introduction

hms-location-demo

Table of Contents

Introduction

Android sample code encapsulates APIs of the HUAWEI Location Kit. It provides many sample programs for your reference or usage.The following describes of Android sample code.

hmssample:Android Sample Code for Integration to Eclipse.

Getting Started

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.

Installation

  1. Clone or download this project and open the downloaded folder in Android Studio or compatible IDE.
  2. use IDE's functionality to install configured project on to your device.

Supported Environments

HMS Core (APK) 4.0.3 or later has been installed on Huawei Android phones.

Sample Code

  1. Invoke the addGeofence method of GeoFenceData to add a geo-fence. The code location is in the addGeofence method of the src\main\java\com\huawei\hmssample2\geofence\GeoFenceActivity.java fle.
  2. location broadcast receiver.The code is stored in src\main\java\com\huawei\hmssample2\location\fusedlocation\LocationBaseActivity.java

Result

Home

Location get last

Location hd

Question or issues

If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

huawei-location-android-demo is licensed under the Apache License, version 2.0.

hms-location-demo's People

Contributors

crisp0708 avatar huawei-mobile-services-core avatar lwj474010422 avatar mike-mei avatar xwr22 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.