Demonstrates using a Text Field to get user input, storing that input, and outputting in a Toast popup.
The entered code:
private EditText favcolor;
favcolor = (EditText) findViewById(R.id.txtColor);
Toast toast = new Toast(getApplicationContext());
toast.setGravity(Gravity.TOP| Gravity.LEFT, 0, 0);
toast.makeText(MainActivity.this, favcolor.getText(), toast.LENGTH_SHORT).show();