Hello guys, I'm using
fl = new ArcGISFeatureLayer(getResources().getString(R.string.layerDefinition), fs, o);
to create a feature layer locally, where fs is a FeatureSet loaded from a .txt file in JSON format, and 'o' are options of type Options.
Both layerDefinition and featureSet are in WGS84 Spatial Reference (4326) and my basemap is initialized as follows:
map = new MapView(this, WEB_MERCATOR, new ArcGISLocalTiledLayer(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + "ingenio_la_cabana" + "/" + "mapa_ingenio.tpk").getFullExtent());
The problem is that it shows this error "Feature collection need to be projected" when I try to load my FeatureLayer locally. This problem appears randomly; sometimes it crashes and doesn't load the layer and sometimes it works fine without touching any code.
Is this an Arcgis for Android bug? Or is it something I'm doing wrong?
Hope you can help me! thank you!