Android Location Manager
Get Current location with one tap
- Auto handle location permissions
- Auto handle gps permision
Code Sample
LocationUtils.init(this)
LocationUtils.getCurrentLocation(object : LocationCallBack {
override fun callBack(location: Location) {
// location updates
}
override fun gpsRequestDeniedCallBack() {
// do something
}
override fun permissionRequestDeniedCallBack() {
// do something
}
})
Gradle dependency
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.smartrk:getCurrentLocation:1.0.0'
}
GitHub
View Github