I\'m trying to create a custom Dialog in an individual class. The dialog is started in the main activity:
DialogLogin login = new DialogLogin();
You are inflating a new layout, where the EditText
has no text in it. You'll need to only once inflate your layout, and keep a reference to it.
final View view = inflater.inflate(R.layout.loginlayout, null);
/* ... */
.setView(view)
/* ... */
EditText text = (EditText) view.findViewById(R.id.loginEdit);