Below is the code I am using to save in the database
// save object asynchronously
HashMap user = new HashMap();
user.put( "username", newUser.getUsername());
user.put( "userid", newUser.getUserID());
user.put( "avatar", newUser.getAvatarURL());
user.put( "deviceID", newUser.getDeviceID());
user.put( "userType", newUser.getUserType());
user.put( "email", newUser.getEmailAddress());
user.put( "followerCount", newUser.getFollowersCount());
user.put( "followingCount", newUser.getFollowingCount());
user.put( "likeCount", newUser.getLikesCount());
// Toast.makeText(LoginActivity.this,"User Values "+user,Toast.LENGTH_LONG).show();
// save object asynchronously
Backendless.Data.of( "app_users" ).save( user, new AsyncCallback<Map>() {
public void handleResponse( Map response )
{
// new Contact instance has been saved
Toast.makeText(LoginActivity.this,"User Created "+response,Toast.LENGTH_LONG).show();
}
public void handleFault( BackendlessFault fault )
{
Log.d("Error:",""+fault.toString());
Toast.makeText(LoginActivity.this,"User Failed to be Created ",Toast.LENGTH_LONG).show();
// an error has occurred, the error code can be retrieved with fault.getCode()
}
});
It runs the handleResponse function after the request is complete but returns a null response and also does not store anything in the database
pls help