Application ID F1F625BB-945E-413F-BB88-C765A106E4D8
DataQueryBuilder queryBuilder = DataQueryBuilder.create();
queryBuilder.setWhereClause("name = '" + name +"'");
Backendless.Data.of(Family.class).find(queryBuilder, new AsyncCallback<List<Family>>() {
@Override
public void handleResponse(List<Family> response) {
person = response.get(0);
String location_res = latitude + " " + longitude ;
tvLocation.setText(location_res);
person.setLocation(new Point().setLatitude(latitude).setLongitude(longitude));
Backendless.Data.of(Family.class).save(person, new AsyncCallback<Family>() {
@Override
public void handleResponse(Family response) {
Toast.makeText(MapsActivity.this, "Saved", Toast.LENGTH_SHORT).show();
}
@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(MapsActivity.this, "Not Saved", Toast.LENGTH_SHORT).show();
}
});
}
@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(MapsActivity.this, fault.getMessage(), Toast.LENGTH_SHORT).show();
}
});
cant update my table but i can get the location from table.