GithubHelp home page GithubHelp logo

hms-core / hms-sitekit-demo Goto Github PK

View Code? Open in Web Editor NEW
40.0 13.0 13.0 12.23 MB

HMS Site Kit demo provides an example of intergrating HMS Core Site Android SDK. your app can provide users with convenient and secure access to diverse, place-related services.

Home Page: https://developer.huawei.com/consumer/en/hms/huawei-sitekit?ha_source=hms1

License: Apache License 2.0

Java 52.02% Kotlin 47.98%
huawei hms site place search map geocoding timezone

hms-sitekit-demo's Introduction

HMS Site Kit for Android

Apache-2.0

English | δΈ­ζ–‡

Table of Contents

Introduction

With HUAWEI Site Kit, your app can provide users with convenient and secure access to diverse, place-related services.

HUAWEI Site Kit provides the following core capabilities you need to quickly build apps with which your users can explore the world around them:

  • Place search: Returns a place list based on keywords entered by the user.
  • Nearby place search: Searches for nearby places based on the current location of the user's device.
  • Place details: Searches for details about a place.
  • Search suggestion: Returns a list of place suggestions.
  • Widget:A search component of the built-in place search suggestion feature.
  • Autocomplete:Return an autocomplete place and a list of suggested places.

You also can use HMS Toolkit to quickly integrate the kit and run the demo project, as well as debug the app using a remote device for free. For details, please visit https://developer.huawei.com/consumer/en/doc/development/Tools-Guides/getting-started-0000001077381096

Getting Started

We provide an sample to demonstrate the use of Site 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 "site-sample".

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. In addition, change the value of the apiKey variable ("your api key") of the getApiKey function in Utils.java or Utils.kt to the value of apiKey obtained from agconnect-services.json.

For more development guidance, please refer to the links below:

Supported Environments

Android SDK Version >= 19 and JDK version >= 1.8 is recommended.

Support

If you have any questions or comments during use, welcome to make suggestions or exchange here: https://github.com/HMS-Core/hms-sitekit-demo/issues

Result

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

Apache License version 2.0

You can get a licensed copy at: https://github.com/HMS-Core/hms-sitekit-demo/blob/master/LICENSE

hms-sitekit-demo's People

Contributors

caixinming avatar liangfu123 avatar lovehuaweimaps avatar mike-mei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.