Closed xxxifan closed 7 years ago
Naming issue :( GPService = GooglePlayService not GPS It'll be fixed with v2 still working on it though :)
But I need a function like the doc says :( please
So you don't want to use GooglePlayServices or/and Network Provider? But only GPS provider?
yes, can you make it :P
I'll consider within v2 :) But you can always set your own LocationProvider? Just extend LocationProvider class do your GPS Provider implementation and should be fine
And one more thing, if library is able to retrieve location in given waiting period for GPS then it'll not switch to network. So you can set setWaitPeriod
for GPS long enough you think that you'd receive location from, and network will never be used. And for the GooglePlayServices you can set doNotUseGooglePlayServices
So it is already possible.
Thanks for the tip, I was doing like this and works like a charm, thanks ;)
You're welcome :)
useOnlyGPService documentation:
but actually it been using for check whether to use GooglePlay service instead of GPS service https://github.com/yayaa/LocationManager/blob/master/library/src/main/java/com/yayandroid/locationmanager/LocationManager.java#L249
and there's another method for decide whether to use GooglePlay service
doNotUseGooglePlayServices