GPSTracker

Additional

Language
Java
Version
2.0 (Oct 1, 2018)
Created
Nov 10, 2017
Updated
Oct 3, 2018
Owner
Ankit Dubey (ankitdubey021)
Contributors
Ankit Dubey (ankitdubey021)
ankit4code
2
Activity
Badge
Generate
Download
Source code
APK file

Promotion

GPSTracker

Very easy and user friendly library for getting current location, address and many more thing with a few line of code. ​

Installation

In project level build file, add the jitpack repository inside repositories of allprojects as follows:

allprojects {
   repositories {
        ... 
 maven { url 'https://jitpack.io' }
   }
}

Gradle:

implementation 'com.github.ankitdubey021:GPSTracker:2.0'

Requirement

Add permission in manifest file as-

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

Step 1. implement MyTracker.ADLocationListener interface for getting location as callback Step 2. override whereIAm() method

@Override
public void whereIAM(ADLocation loc) {
    System.out.println(loc);
}

Step 3. get locationnew MyTracker(getApplicationContext(),this).track();