GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - android/location-samples: Multiple samples showing the best practices in location APIs on Android.

This repository was archived by the owner on Aug 23, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

214 Commits
214 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
ActivityRecognition
ActivityRecognition
 
 
AwarenessApisSampleKotlin
AwarenessApisSampleKotlin
 
 
ForegroundLocationUpdates
ForegroundLocationUpdates
 
 
Geofencing
Geofencing
 
 
LocationAddress
LocationAddress
 
 
LocationUpdatesBackgroundKotlin
LocationUpdatesBackgroundKotlin
 
 
SleepSampleKotlin
SleepSampleKotlin
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Warning This sample has been deprecated and is no longer being maintained.

Find the new location samples in the new platform-samples repo.

Google Play Location & Context Samples

The location and context APIs harness the sensors and signals of mobile devices to provide awareness of user actions and their environment, enabling delightful and engaging experiences that simplify user interactions, provide assistance, and help users to better understand themselves.

This repo contains the following samples:

  • Activity Recognition (Kotlin) - Demonstrates the ActivityRecognitionApi to determine the user's current activity.

  • AwarenessApisSampleKotlin (Kotlin) - Demonstrates use of the Awareness APIs to intelligently react to the current situation of the user.

  • ForegroundLocationUpdates (Kotlin) - Get updates about a device's location using a bound foreground service.

  • Geofencing (Java) - Create geofences and process enter and exit transitions.

  • LocationAddress (Kotlin) - Use the Geocode API to display a device's location as an address.

  • LocationUpdatesBackgroundKotlin (Kotlin) - Demonstrates the correct way to retrieve location updates in the background.

  • SleepSampleKotlin (Kotlin) - Demonstrates use of the Sleep API to recognize a user's sleep 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

  • Stack Overflow: http://stackoverflow.com/questions/tagged/google-play-services

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.

License

These samples are distributed under the terms of the Apache License (Version 2.0). See the license for more information.

About

Multiple samples showing the best practices in location APIs on Android.

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

2.7k stars

Watchers

34 watching

Forks

2.7k forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.