title: android edittext in dialog returns null
body: <p>Right now im feeling really dumb and I really hope ill be able to find a solution like that.</p>
  
  <p>What I want to do: the Alert has an edittext, the input from this edittext will be used in the next activity
  my problem is that the string test is always null. What am I doing wrong?</p>
  
  <pre><code>public void CalibrateButtonClicked(View v) {
  AlertDialog.Builder builder = new AlertDialog.Builder(this);
  LayoutInflater inflater = this.getLayoutInflater();
  
  final View dialogView = inflater.inflate(R.layout.dialog, null);
  builder.setMessage("calibration");
  
  
  builder.setView(dialogView)
          .setPositiveButton("OK", new DialogInterface.OnClickListener() {
              @Override
              public void onClick(DialogInterface dialog, int which) {
                //  startActivity(new Intent(FaceMenu.this, FaceTrackerActivity.class));
                 EditText edit = (EditText)dialogView.findViewById(R.id.editText2);
                  String test= edit.getText().toString();
                  Intent intent = new Intent(getBaseContext(), FaceTrackerActivity.class);
                  intent.putExtra("EXTRA_SESSION_ID", test);
                  startActivity(intent);
  
              }
          })
          .create().show();
  }
  </code></pre>