Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Getting current location in Xamarin.Forms for Android

$
0
0

Hi

What I want to do is quite simple; provide a button that when the user clicks, connects to the Location service and retrieve the Longitude and Latitude of the current location. I've spent hours trying to achieve this using the sample code for Location Service, but it does not work. I don't have any errors, but the OnLocationChanged() does not get fired at all. I am not trying to track location every time it changes, all I want to do is pickup the current location when needed - very simple requirement. Can anyone help please?

Regards

Terence


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>