How do I get currency names by country code?… here is a solution to the problem.
How do I get currency names by country code?
I want to get the currency name by country code. I use the following code to get the country code:
TelephonyManager manager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
String countrycode=manager.getNetworkCountryIso();
System.out.println("---->"+countrycode+"<----");
Now I want to get the currency by using this country code. What should I do?
Solution
You can use this utility to get the currency and load it from the country code.
http://developer.android.com/reference/java/util/Currency.html