[Solved] Getting values of edit text error NULLPOINTER why? [closed]


Try instead

 EditText edt1=(EditText)dialog.findViewById(R.id.EditTextNom);

you need to look in the layout that is inflated for the Dialog. Right now it is looking in the one that was inflated for the Activity and, obviously, those Views don’t exist in that layout.

1

solved Getting values of edit text error NULLPOINTER why? [closed]