I saw that if I save a new registry that they already existst, this registry don’t update automatically.
So, first i want to delete this row and then save the new registry.
In android… How I can delete a row from a table with a WHERE clause for example “myId”.
That’s that i want:
I have this table: TABLEX
This table have two columns: myId, name
In this table i have two rows:
a111, Phill
a222, Mark
I put this in my code… but android studio tells me that:
Class ‘Anonymous class derived from AsyncCallback’ must either be declared abstract or implement abstract method ‘handleresponse(T)’ in ‘AsyncCallback’.
My code:
HashMap objectToDelete = new HashMap();
objectToDelete.put("Id", iddevice);
Backendless.Persistence.of( "ANSWERS" ).remove( objectToDelete, new AsyncCallback<Map>() {
public void handleResponse( Long response )
{
// new Contact instance has been saved
}
public void handleFault( BackendlessFault fault )
{
// an error has occurred, the error code can be retrieved with fault.getCode()
}
});
HashMap objectToDelete = new HashMap();
objectToDelete.put("Id", iddevice);
Backendless.Persistence.of( "ANSWERS" ).remove( objectToDelete, new AsyncCallback<Long>() {
public void handleResponse( Long response )
{
// new Contact instance has been saved
}
public void handleFault( BackendlessFault fault )
{
// an error has occurred, the error code can be retrieved with fault.getCode()
}
});