I want get Currency symbol (like $ or £) by currency name (like USD or EUR).
For English(US) I can get symbol (if English(US) set as language on device):
Currency currency = Currency.getInstance(Locale.getDefault());
String symbol = currency.getSymbol()); // $
How can I get symbol for currency by currency name using android tools -
someMethod (String currCode) { // currCode - USD, EUR, UAH
return currSymbol; // $...
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…