How To Use Getcurrencyinstance And Format In Low Api?
I am getting an error in the following code: private void displayPrice (int number) { TextView price = (TextView)findViewById(R.id.txt_price); price.setText(NumberFormat.g
Solution 1:
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.
Post a Comment for "How To Use Getcurrencyinstance And Format In Low Api?"