Giter VIP home page Giter VIP logo

location-samples's Introduction

Google Play Location Samples

Samples that use Location APIs to help you make your applications location aware.

This repo contains the following samples:

  1. Basic Location Sample (Java, Kotlin): Retrieve the last known location for a device.

  2. Location Updates: Get updates about a device's location.

  3. Location Updates using a PendingIntent: Get updates about a device's location using a PendingIntent. Sample shows implementation using an IntentService as well as a BroadcastReceiver.

  4. Location Updates using a Foreground Service: Get updates about a device's location using a bound and started foreground service.

  5. Location Address (Java, Kotlin): Use the Geocode API to display a device's location as an address.

  6. Creating and Monitoring Geofences: Create geofences and process enter and exit transitions.

  7. Recognizing the User's Current Activity: Use the ActivityRecognitionApi to determine the user's current activity.

Prerequisites

  • Android API Level >v9
  • Android Build Tools >v21
  • Google Support Repository

Getting Started

These samples use the Gradle build system. To build a sample, use the "gradlew build" command or use "Import Project" in Android Studio.

Support

If you've found an error in these samples, please file an issue: https://github.com/android/location-samples/issues

Patches are encouraged, and may be submitted according to the instructions in CONTRIBUTING.md.

location-samples's People

Contributors

carlospuk avatar codingjeremy avatar darioalessandro avatar dturner avatar frankgh avatar jfschmakeit avatar naokigoogle avatar paulrashidi avatar samtstern avatar shailen avatar tasomaniac avatar tiembo avatar viks178 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.