title: EditText doesnt return value from field
body: <p>Hello i have problem with getting value from EditText field</p>
  
  <p>My code is:</p>
  
  <pre><code>public class GameSetupActivity extends Activity {
  
  DatePicker datepicker; 
  TimePicker timepicker;
  DatabaseManager dbm = new DatabaseManager(this);
  public EditText enemy_name;
  public EditText date;
  public EditText time;
  public EditText place;
  public String enemy_name_s;
  public String date_s;
  public String time_s;
  public String place_s;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_game_setup);
      enemy_name = (EditText) findViewById(R.id.enemy_name_activity_game_setup );
      date = (EditText) findViewById(R.id.date);
      time = (EditText) findViewById(R.id.time);
      place = (EditText) findViewById(R.id.place);
      this.setTitle(getResources().getString(R.string.preparing_game));
  
  }
  
  public void chose_players_button(View v)
  {
      enemy_name_s=enemy_name.getText().toString();
      date_s=date.getText().toString();
      time_s = time.getText().toString();
      place_s=place.getText().toString();
      Intent intent = new Intent(GameSetupActivity.this,ChosePlayersForGameActivity.class);       
      startActivity(intent);
  }
  </code></pre>
  
  <p>and layout:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/scrollView1"
  android:layout_width="wrap_content"
  android:layout_height="fill_parent" 
  android:fillViewport="true"
  android:background="@drawable/boisko_610"
  
  
  android:gravity="top"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context=".GameSetupActivity" 
   &gt;
  
  &lt;EditText
      android:id="@+id/enemy_name_activity_game_setup"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:hint="@string/enemy_team_name" /&gt;
  
  &lt;Button
      android:id="@+id/chose_players_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/enemy_name_activity_game_setup"
      android:layout_below="@+id/enemy_name_activity_game_setup"
      android:layout_marginTop="22dp"
      android:onClick="chose_players_button"
      android:text="@string/chose_players" /&gt;
  </code></pre>
  
  <p>but  when i debug it every time enemy_name_s is empty, even if i use enemy_name.setText("something") field in app is empty and i have no idea whats wrong, please help.</p>
  
  <p>Problem is not that method public void chose_players_button(View v) is not working, it does. its the line enemy_name_s=enemy_name.getText().toString() is not working </p>