How to get a currency's display name before Android API 19?

情到浓时终转凉″ 提交于 2019-12-10 11:07:52

问题


Currency.getDisplayName(java.util.Locale) is exactly what I want... except it's only available since Android API 19. That's no good as my minSdkVersion < 19.

Does anyone know how to get the locale-specific display name for a currency before API 19? Preferably without having to use a third-party library.

This question can alternatively be expressed as:

How can you get the equivalent of Currency.getDisplayName(java.util.Locale) before Java 7?

来源:https://stackoverflow.com/questions/40349116/how-to-get-a-currencys-display-name-before-android-api-19

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!