Add
setContentView(R.layout.LAYOUTNAME);
in oncreate, before you try to get view by
UserProfileFirstName = (EditText) findViewById(R.id.userFirstName);
// here LAYOUTNAME
is your layout’s name where you define this edittext
1
solved Android EditText setText not working [closed]