Hi again!
Sorry, but i'm a little bit lost with this, i cannot find any relevant example beyond the simplest one.
I notice that in your example you do not pass the geometry and the attributes to the feature to create. When I add geometry it works fine, but when i try to add attributes it did not do it. Also, I notice too that you choose not to use asynchronous capabilities, usind the .get() method that stop the process until the request end.
this is my modification of your code:
//SpatialReference webSR = SpatialReference.create(3857);
//Point pt = new Point(-17.2627, 28.1885, SpatialReferences.getWgs84());
//Point webPoint = (Point) GeometryEngine.project(pt, webSR);
Feature feature = sFeatureLayerUtils.featureTableMoni.createFeature(attributes,mapPoint);
//feature.setGeometry(mapPoint);
sFeatureLayerUtils.featureTableMoni.addFeatureAsync(feature);
ListenableFuture<List<FeatureEditResult>> listListenableFuture = sFeatureLayerUtils.featureTableMoni.applyEditsAsync();
try {
//TODO Esto bloquea hasta que llega el resultado.
for (FeatureEditResult featureEditResults : listListenableFuture.get()) {
Log.e("TEST", "Fetaure Edit Results");
Log.e("TEST", "ObjectID " +featureEditResults.getObjectId());
}
} catch (InterruptedException e) {
Log.e("ERROR", "InterruptedException en carga de monitorizacion: " + e.getMessage());
e.printStackTrace();
} catch (ExecutionException e) {
Log.e("ERROR", "ExecutionException en carga de monitorizacion: " + e.getMessage());
e.printStackTrace();
}
any help in this will be very appreciated!