Created
April 17, 2015 04:05
-
-
Save anonymous/36388d8e8d2608ee1c89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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)); | |
} |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.