How to update user information on Parse.com in Android?
I am trying to update user information on parse.com and it worked fine once and it doesn't work anymore. I do not know why.
Here is my code.
ParseUser pu = ParseUser.getCurrentUser();
String userID = pu.getObjectId();
ParseQuery<ParseUser> query = ParseUser.getQuery();
query.getInBackground(userID, new GetCallback<ParseUser>() {
@Override
public void done(ParseUser parseUser, ParseException e) {
if (e == null) {
String playerName= displayNameEditText.getText().toString();
parseUser.put("playerName", playerName);
String teamName= emailEditText.getText().toString();
parseUser.put("teamName", teamName);
String phone = phoneEditText.getText().toString();
parseUser.put("phone", phone);
parseUser.saveInBackground();
}
}
});
Any suggestions?
0
source to share
No one has answered this question yet
See similar questions:
or similar: