title: Edit text not accepting value
body: <p>I have entered values in my text field, But the debugger shows null value.
  The text id's are correct yet no value is being printed.
  The log cat is showing null pointer exception. I have declared all the variables in the class.</p>
  
  <p>The edit text string functions are declared in the method itself.</p>
  
  <pre><code>        et1 = (EditText)findViewById(R.id.editText1);
          et2 = (EditText)findViewById(R.id.editText2);
          et3 = (EditText)findViewById(R.id.editText3);
          et4 = (EditText)findViewById(R.id.editText4);
          et5 = (EditText)findViewById(R.id.editText5);
  
          set1 = et1.getText().toString();
          set2 = et2.getText().toString();
          set3 = et3.getText().toString();
          set4 = et4.getText().toString();
          set5 = et5.getText().toString();
          System.out.println("set1 ="+set1);
          System.out.println("set2 ="+set2);
  </code></pre>
  
  <p>All values given input are showing null and these are the few values that are being declared in the xml.</p>
  
  <p>I need to know what mistake i am doing and how to rectify it.</p>
  
  <p>i have initialized the values after setContent the data access happens in button on click listener... i didnt want to post the entire code.. –</p>