I\'ve search over the threads but so far I have not found what I\'m looking for. I created a custom Alert Dialog that show up and I can do almost anything with it. It custom
When you use findViewById you implicitly refer to the current activity. The part you have to change is
EditText txtAccName = (EditText) ad.findViewById(R.id.txtEditName);
instead of
EditText txtAccName = (EditText) findViewById(R.id.txtEditName);
when you attempt to resolve it. You'll also have to change the scope of the AlertDialog object ad to class-wide and make sure that it's not null, before you search for views in it.
That's pretty much it.