Backendless.Data.of("Users").find(queryBuilder, new AsyncCallback<List<Map>>() {
@Override
public void handleResponse(List<Map> response) {
e
Log.d(getClass().getName(),“Response:”+response.toString());// always empty
String username = response.get(0).get(“username”).toString();// crashes
editTextUsername.setError(username+" Unavailable", Drawable.createFromPath("@drawable/ic_custom_logo_g"));
}
@Override
public void handleFault(BackendlessFault fault) {
//username available
}
});
In this code fragment the response object is always empty no matter the value of string s
I have a user with username = “tester” in the Users table, but running this code with s=“tester” still returns an empty response object
I use exactly the same quotes around productId in this code and it works fine.
Backendless.Data.of(“Master”).update(“productId = '” + productId + “’”, masterChanges, new AsyncCallback() { @Override
public void handleResponse(Integer objectsUpdated) {
Log.d(getClass().getName(),"Master Record updated:"+productId);
progressBar.hide();
}
@Override
public void handleFault(BackendlessFault fault) {
}
});