How to print EditText content to the log?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5167703/how-to-print-the-data-which-is-coming-from-the-edittext">How to print the data which is coming from the edittext?</a>  </p>
</blockquote>



<pre><code>final ViewGroup layout6 = (ViewGroup) LayoutInflater.from(Menus.this)
    .inflate(R.layout.beefkabobsandwhichdialog, null);

AlertDialog.Builder builder6 = new AlertDialog.Builder(Menus.this);
builder6.setView(
    LayoutInflater.from(Menus.this)
        .inflate(R.layout.beefkabobsandwhichdialog, null));
builder6.setPositiveButton("Add2Order",new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int which) {
        String str = ((EditText)layout6.findViewById(R.id.quantityedittext1))
            .getText().toString();
        System.out.println(str);
    }
});
</code></pre>
