Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Android Reactivelocation | 2,117 | 117 | 1 | 3 years ago | 11 | September 29, 2017 | 32 | Java | ||
Small library that wraps Google Play Service API in brilliant RxJava Observables reducing boilerplate to minimum. | ||||||||||
Rxgps | 309 | 4 years ago | 6 | apache-2.0 | Java | |||||
Finding current location cannot be easier on Android ! | ||||||||||
Airlocation | 251 | 2 years ago | Kotlin | |||||||
Rxlocationmanager | 115 | 5 years ago | 5 | mit | Kotlin | |||||
RxJava wrap around standard Android LocationManager without Google Play Services | ||||||||||
Lubmerjack Automation | 102 | 2 years ago | 1 | Python | ||||||
The code which plays LumberJack game for you | ||||||||||
Android Easylocation | 97 | 5 years ago | 5 | apache-2.0 | Java | |||||
Google play service - location services wrapper | ||||||||||
Cordova Plugin Request Location Accuracy | 92 | 45 | 2 | 4 years ago | 12 | May 21, 2019 | 2 | Java | ||
Cordova/Phonegap plugin for Android and iOS to request enabling/changing of Location Services by triggering a native dialog | ||||||||||
Android Location Example | 60 | 8 years ago | 1 | mit | Java | |||||
Project files for a blog post about the basics of using location in Android via Google Play Services | ||||||||||
Android Location Example Refactored | 55 | 8 years ago | 2 | Java | ||||||
Alternate project files for a blog post about the basics of using location in Android via Google Play Services | ||||||||||
Locationestimatr.github.io | 32 | 3 years ago | 1 | JavaScript | ||||||
This is a game where you are put anywhere on earth, and you have to figure out where you are |
An android library to simplify the usage of Google Play services location APIs, to get the user's most precise live location via a callback!
Features:
![]() |
![]() |
![]() |
Add this line in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' } // this line
}
}
Add this line in your app build.gradle:
dependencies {
implementation 'com.github.mumayank:AirLocation:LATEST_VERSION' // this line
}
airLocation
airLocation.start()
onActivityResult
and call airLocation.onActivityResult()
onRequestPermissionsResult
and call airLocation.onRequestPermissionsResult()
Example:
class MainActivity : AppCompatActivity() {
private val airLocation = AirLocation(this, object : AirLocation.Callback {
override fun onSuccess(locations: ArrayList<Location>) {
// do something
// the entire track is sent in locations
}
override fun onFailure(locationFailedEnum: AirLocation.LocationFailedEnum) {
// do something
// the reason for failure is given in locationFailedEnum
}
})
override fun onCreate(savedInstanceState: Bundle?) {
...
airLocation.start() // CALL .start() WHEN YOU ARE READY TO RECEIVE LOCATION UPDATES
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
airLocation.onActivityResult(requestCode, resultCode, data) // ADD THIS LINE INSIDE onActivityResult
}
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
airLocation.onRequestPermissionsResult(requestCode, permissions, grantResults) // ADD THIS LINE INSIDE onRequestPermissionResult
}
}
true
as the value of the parameter isLocationRequiredOnlyOneTime
: private val airLocation = AirLocation(this, object : AirLocation.Callback {
override fun onSuccess(locations: ArrayList<Location>) { }
override fun onFailure(locationFailedEnum: AirLocation.LocationFailedEnum) { }
}, true) // NOTE HERE: PASS true TO JUST GET USER'S LIVE LOCATION ONCE
If you love the library, or it has helped you in any way, please give it a star! I'd really appreciate it!
Post your feature requests/ pull requests/ bug reports in the appropriate section of this repository.
Thank you :)