당신이 거기 로그 캣에 결과를 출력하지만이 보이지 될 것입니다 무엇을 쓸가능한 중복 :
How to print the data which is coming from the edittext?EditText 콘텐츠를 로그에 인쇄하는 방법은 무엇입니까?
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);
}
});
다시 안녕하세요. 너는 방금이 질문을했다, 그렇지? downvote 좋은 하루 되세요. – Klaus
하지만 logcat에 str 값을 인쇄 할 수 없습니다 ... y ?? – sam
복제본 : http://stackoverflow.com/questions/5167703/how-to-print-the-data-which-is-coming-from-the-edittext – HaskellElephant