I am trying to update a value in my user Table it was working before but now i gives error
Provided email has wrong format
i do not get it what email has to do with update value in the user table
code::
Backendless.Data.of( BackendlessUser.class ).setRelation(user, "studentInformation", studentInfoCollection, new AsyncCallback<Integer>() { @Override public void handleResponse(Integer response) {
user.setProperty( "isVerified", 2 );
Backendless.UserService.update( user, new AsyncCallback<BackendlessUser>()
{
public void handleResponse( BackendlessUser user )
{
submitButtonCardView.setVisibility(View.INVISIBLE);
progressBar.setVisibility(View.INVISIBLE);
startActivity(new Intent(StudentInformationAll.this , StudentProfile.class));
// user has been updated
}
public void handleFault( BackendlessFault fault )
{
progressBar.setVisibility(View.INVISIBLE);
submitButtonCardView.setVisibility(View.VISIBLE);
showMessage(somethingWentWrong);
Toast.makeText(StudentInformationAll.this, "Stuck in this shit 1st " + fault.getMessage(), Toast.LENGTH_SHORT).show();
// user update failed, to get the error code call fault.getCode()
}
});
}
@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(StudentInformationAll.this, fault.getMessage(), Toast.LENGTH_SHORT).show();
}
});