Features
This Library is used to Get the Current Location of the User
Add repository url and dependency in application module gradle file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.softpal:LocationUtils:1.0'
}
// Call the method by passing date in required format
Location location = LocationUtils.getMyLocation(MainActivity.this);
location.getLatitude();
location.getLongitude();