AnsweredAssumed Answered

How do i enable edit in FeatureLayer

Question asked by _hassan on Feb 17, 2015
Latest reply on Jun 12, 2015 by WCrick-esristaff

Hello every one

 

I've create FeatureLayer from GeodatabaseFeatureTable like this

FeatureLayer featureLayer = new FeatureLayer(geodatabaseFeatureTables.get(index++));
             featureLayer.setEnableLabels(true);
             mMapView.addLayer(featureLayer);

 

but when I'm trying to delete some Feature in the table I got an Exception till me that the table not editable and edit option not enabled

 

featureLayer.getFeatureTable().deleteFeature(featureLayer.getID());

 

so how to enable editing

 

Note: the code in android - Esri-android-SDK -

 

Thanks in advance

Outcomes