I need to get the device’s current geographical location.
Scenario : if I am in US..:
my device location should be US
Same as in the case, when I am in UK :
my device location should be UK
I need the sample code for finding this geographical location.(location determined by Network Location Provider)
If you want to get the current country code, you want to look into
Geocoderwhich you can use to get anAddresswhich provides agetCountryCodemethod. Something like thisAs far as getting the current latitude and longitude, there is plenty of information out there on how to do that