SamLocationAndGeocoding

Additional

Language
Java
Version
1.1.0 (Sep 19, 2016)
Created
Sep 19, 2016
Updated
Oct 3, 2016
Owner
Sachin Malik (kingsammalik)
Contributor
Sachin Malik (kingsammalik)
1
Activity
Badge
Generate
Download
Source code

Advertisement

SamLocationAndGeocoding

This is a simplified library to track the user location and address corresponding to it.

Add it in your root build.gradle at the end of repositories:

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

 Add the dependency
 
 compile 'com.github.kingsammalik:SamLocationAndGeocoding:1.1.0'
 
 
 Then use it like this. 
 
  
        new SamLocationRequestService(MainActivity.this).executeService(new SamLocationRequestService.SamLocationListener() {
                    @Override
                    public void onLocationUpdate(Location location, Address address) {
                        Toast.makeText(MainActivity.this,"mapped",Toast.LENGTH_SHORT).show();
                    }
                });