-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always updating the last known location rather than the current one. #3
Comments
Thanks for your kind feedback! What's your code that isn't really working yet? Did you include the call to Otherwise, if the default interval between new location updates (10 minutes) does not work for you, you can pass a custom interval (in milliseconds) to the constructor: Android-SimpleLocation/Source/src/im/delight/android/location/SimpleLocation.java Line 161 in 5687734
Does that help? |
Thanks a lot for your kind response... Yes I figured out that I was not Thank You Again... :)
|
Using the JAR is fine, it's possible without changing any library code: Right now, you're calling the constructor like this:
You just have to replace that call with the following one:
... to request a new location every 5 seconds. This will drain the battery more than the default interval, of course. You have to try and see what works for you. If you had the second parameter of the constructor set to
... then keep that parameter as well and just add the two Please report if that worked :) |
Thanks a lot.... I'll let you know if it works... :) On 17 April 2015 at 22:44, Marco notifications@github.com wrote:
|
The edits you suggested, are working like a charm...! But there's a little Is there a way I can correct it? I do call location.beginUpdates(); before I start the rest of the program, Thank You. :) On 17 April 2015 at 22:55, Abhinab Das abhinabdas001@gmail.com wrote:
|
Thanks, apparently, there's no bug here and everything is working as intended. If you continue to have problems with some devices that use the same location again and again (what does that mean, exactly?) please check your integration and check if GPS is enabled on the device. Should you need more help even after debugging your integration, please open a separate issue here. Thank you! |
Ok I'll check it, Thanks a lot anyways.. :)
|
Hello mwaclawek,
I am very grateful that you have made this wonderful library available to everyone and it is pretty awesome.
But currently im facing some issues with getting the current location, as the old known location is only getting updated most of the times... And in many devices im only getting (0,0) coordinates...
Is there any way I can correct it and make it update the location to the current one every-time asked for and eliminate the (0,0) coordinate results?...
I really need your help and I shall always be grateful to you for the same... Please help...
The text was updated successfully, but these errors were encountered: