Hello,
I want to use Business Logic to move GeoPoints between categories when certain conditions apply. This is the code I use:
// GeoPoint from "Default" category
GeoPoint geoPoint = iterator.next();
ArrayList<String> newCategory = new ArrayList<String>();
newCategory.add("Old");
geoPoint.setCategories(newCategory);
GeoPoint updatedGeoPoint = Backendless.Geo.savePoint( geoPoint );
What this code achieves is to add the GeoPoint to the “Old” category. What is doesn’t, however, is to remove it from its original (“Default”) category. What am I doing wrong?