Mohsen Armoun Mohsen Armoun - 1 month ago 13
Android Question

how use getCurrencyInstance and format in low api?

Image

in android api 24 can use this how i can use this in low api ex(api 15)

Answer

Change your import to use java.text.NumberFormat (available from API 1) instead of android.icu.text.NumberFormat (available from API 24).

The ICU4J framework provides better internationalization support, but it is not required.