Skip to content

Instantly share code, notes, and snippets.

View New method in MainActivity.java
/**
* This method displays the given text on the screen.
*/
private void displayMessage(String message) {
TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
priceTextView.setText(message);
}
You can’t perform that action at this time.