How to get currency name by country code?
-
09-02-2021 - |
Question
I want to get the currency name by country code. I get the country code with the following code:
TelephonyManager manager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
String countrycode=manager.getNetworkCountryIso();
System.out.println("---->"+countrycode+"<----");
Now I want to get currency by using this country code. How can i do this?
Solution
You can get the currency by using this util and load from country code.
http://developer.android.com/reference/java/util/Currency.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow