ParseUser enableAutomaticUser User currentUser User ParseUser getCurre

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
ParseUser.enableAutomaticUser();
User currentUser = (User) ParseUser.getCurrentUser();
currentUser.setName(fullName);
currentUser.setCountry(country);
currentUser.setPhone(phone);
currentUser.setRole(User.ROLE_TOURGUIDE);
currentUser.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
if (e == null) {
requestVerify();
} else {
e.printStackTrace();
progressDialogFragment.dismiss();
}
}
});