GPS is used by many applications in order to localize the phone and propose recommendations or orientation depending on where the user is. In this recipe, we'll see how to retrieve the longitude and the latitude and then compute a street address.
To follow this recipe, create a new project called Gps
, and you'll need to deploy your application on a physical phone as the emulator doesn't support GPS.
Here are the steps required to complete this recipe:
TextView
elements to your Main.axml
file, so it looks like the following:using Android.Locations
, using
System.Collections.Generic
, and using System.Text ...
No credit card required