I'm trying to get the country name where the phone is in. For instance if the user is in Germany it has to say Germany. I've tried several things to make this happen, but I haven't found any proper solution. I know I can use TelephonyManager
, but that will give me the ISO, and I want the name of the country. I've also tried this getApplicationContext().getResources().getConfiguration().locale.getDisplayCountry();
, but that always gives me "United States" even though I'm not there. I know this is possible as I've seen it in another application. Should I use the ISO somehow to accomplish what I what, or is there a smarter/easier way?
Please, don't vote this post as duplicate as I've already searched here on Stackoverflow, but there isn't any solution to get the name of the country :)