Get Country Name Of User Location In Android

User Cristian in the StackOverflow forum provided some code on how to get the country name based on the Location’s latitude and longitude coordinates.

While this may work at first, you might find out while testing that on the 2nd try, the GeoLocation objects produces a NullPointerException.

This is actually because the Google Maps API has a limit on free requests. If you wish to make sure your app never crashes when it checks for the country name, you will have to pay.

Related Posts Plugin for WordPress, Blogger...

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *