Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/haxgert/geo-location-kotlin


https://github.com/haxgert/geo-location-kotlin

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Android Kotlin app for tracking the device's Geo location

## Overview
This is an Android sample app written in Kotlin which shows how to track the devices geo-location.

## Highlights:
* Request coarse and fine location permission
* Handle different permission allow and deny responses
* Set up fusedLocationProvider client and locationRequest
* Start and stop location tracking
* Display latitude and longitude results in the UI

## Getting Started
1. Cone the project from GitHub

```
https://github.com/haxgert/Geo-Location-Kotlin.git
```
2. Build the project in Android Studio
3. Configure emulator to set a mock location or route
3. Deploy on emulator or device.

## Versions used
* Android Studio 4.2
* Android API 29

## Sample App Usage
1. Press the 'Start Tracking' button to start the request permission flow.
2. Once the permission is granted, a latitude and longitude should be displayed
3. Use the 'Stop Tracking' button to stop tracking a geo location.