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
The quickest solution to your problem I believe is that you simply are missing parentheses on your getText. Simply add () to edit.getText().toString() and that should solve it
getText
()
edit.getText().toString()