The question is quite simple. But I want to know where exactly do we make our references to the gui elements? As in which is the best place to define:
final
Place the following after the setContentView() method.
final EditText edit = (EditText) findViewById(R.id.Your_Edit_ID); String emailString = (String) edit.getText().toString(); Log.d("email",emailString);