Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting current location with LocationManager

I'd like to get user current location with my codenameone android application. But this seems to take too much time. Timeout is set to 20000 and I find it too long. Is there a way to detect location with a reduced timeout? Thanks

like image 556
Tim HG Avatar asked Feb 16 '26 00:02

Tim HG


1 Answers

Timeout is just a way to tell your app to stop searching for location at a specified time if not found. Location can be found within a second or two if GPS is turned on and a user is not underground.

like image 110
Diamond Avatar answered Feb 20 '26 20:02

Diamond



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!