I have a problem with a custom dialog.
My dialog consists of a TextView, EditText and an \"Ok\" Button. After clicking \"Ok\", it should get t
An alternative to matsjoe and to krishna (both work):
builder.setPositiveButton(R.string.signin, new DialogInterface.OnClickListener() {
//@Override
public void onClick(DialogInterface dialog, int id) {
// sign in the user ...
Dialog dialogObj =Dialog.class.cast(dialog);
EditText etUsr=(EditText) dialogObj.findViewById(R.id.username_id_value);
userStr = etUsr.getText().toString();
}
}
);
Kf