title: How to get text from EditText?
body: <p>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:</p>
  
  <pre><code>final EditText edit =  (EditText) findViewById(R.id.text_xyz);
   edit.getText.tostring();
  </code></pre>
  
  <p>When I try it doing inside the default oncreate() I get null values.
  So for best practice, do u recommend a separate class for referring these already defined gui elements in main.xml. From here we can call various methods of these elements like gettext or settext?</p>