-
-
Save anonymous/36388d8e8d2608ee1c89 to your computer and use it in GitHub Desktop.
/** | |
* This method displays the given quantity value on the screen. | |
*/ | |
private void displayPrice(int number) { | |
TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number)); | |
} |
Holle
good,i find you.
why my $ auto change to ¥?
why my $ auto change to Rs.
have a error help me please
private void displayPrice(int number) {
TextView priceTextView = (TextView) findViewById(R.id.lblprecio);
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
}
error call requires API level 24 min 15
.getCurrencyInstance().format
my app min level 15
hi, im still recieiving the number format error, any one know why?
after following and doing the fly box checked still error of number format is existing >.... any one help me plz
At this point, I have several errors in my code. first, the "Override" errors out and says that the "method does not override a method from its superclass". Then the onCreate(savedInstancesState) method errors out and states "cannot resolve method onCreate" it does the same for the setContentView method. A picture below shows the errors that I have.
if the auto import didn't import the NumberFormate ,try to click on the NumberFormate then press Alt+Enter keys from your Key board ,a list will appear, choose " import NumberFormate " from the list
click on NumberFormate
then press ALT + Enter
then import according to API
i have been here!