title: Android: EditText.getText().toString returns nothing
body: <p>I want to get value from an edittext view in an <code>onClick</code> method, but there seems to be some problems retrieving the id of the <code>EditText</code>.
  here is my code:</p>
  
  <pre><code>public class CreateEvent extends Activity{
      Button cbutton;
      EditText title;
  
      protected void onCreate(Bundle savedInstancesState){
          super.onCreate(savedInstacesState);
          setContentView(R.layout.create_event_layout);
  
          cbutton = (Button)this.findViewById(R.id.cbutton);
          title = (EditText)this.findViewById(R.id.title);
  
          cbutton.setOnClickListener(new Button.OnClickListener()
          {
              public void onClick(View v){
                  Log.v("title", title.getText().toString());
          });
      }
  }
  </code></pre>
  
  <p>Also I tried to move initiation of title into <code>onClick</code>, still nothing returned.
  Not sure what to do.</p>
  
  <p>this is the layout file:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width = "fill_parent"
  android:layout_width = "fill_parent"
  android:oriention = "vertical"&gt;
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/title"
      /&gt;
      &lt;EditText
          android:id="@+id/title"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textSize="20sp"
          android:hint="@string/title"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am pretty sure there is nothing wrong with my layout file.</p>