How to get a currency's display name before An

2019-05-21 08: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?