how to update data for user because the code works correctly(get it by Toast) but row doesn’t update
ParseQuery<ParseObject> query = ParseQuery.getQuery("Users");
query.getInBackground(userInformationsArrayList.get(holder.getAbsoluteAdapterPosition()).getUserBornDate(), new GetCallback<ParseObject>() {
@Override
public void done(ParseObject object, ParseException e) {
if(e == null) {
object.put("paymentDate", date);
object.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
Toast.makeText(context, "Done", Toast.LENGTH_LONG).show();
}
});
}
else{
Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG).show();
}
}
});
I tried to saveInBackground without callback and a lot of permutation options and nothing works
breakcore pashok is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.