Updating Data Objects android

hi ,how can update a recordset i followed thishttps://backendless.com/documentation/data/android/data_updating_data_objects.htm
but get a duplicate entry

what is the right api for update i dont understand

public void pagato_gennaio(final String stato,String id_utente) {
final pagamenti pg = new pagamenti();
pg.setId_utente(id_utente);
pg.setId_mese("gennaio");
pg.setStato(stato);
Backendless.Persistence.save(pg, new AsyncCallback<pagamenti>() {
public void handleResponse(pagamenti res) {
pg.setStato(stato);
Backendless.Persistence.save( res, new AsyncCallback<pagamenti>() {
@Override
public void handleResponse( pagamenti response ) {
// Contact instance has been updated
}
@Override
public void handleFault(BackendlessFault fault )
{
// an error has occurred, the error code can be retrieved with fault.getCode()
}
} );
}
public void handleFault(BackendlessFault fault) {
Log.i("Registration", " backendlessFault" + fault.getMessage());
}
});
}

Hi,

What is the structure of pagamenti class?

Regards,

Denys

hi Denys this question its solved

http://support.backendless.com/t/updating-data-objects-android