Hello all, I followed the steps in this link to create an offline map that contains a streets layer on my android device, everything went well; but when running the app, it does not show all the streets of the dataset. What might be the issue here?
1- The layer in ArcMap
2- The same layer on the android device (after exporting the data as Runtime content)
Is the issue happen when you retrieve runtime content in your Android app?
What's the type of your layer?
Thank you for interest Mengyie,
Yes this issue appears when retrieving the runtime content in the app.
The layer is a "line" feature class.
How many layers do you have in this geodatabase file?
The code should be something like...
//Open the geodatabase file
Geodatabase geodatabase = new Geodatabase("{/path/to/geodatabase}");
private GeodatabaseFeatureTable geodatabaseFeatureTable; //get the geodatabase feature table
geodatabaseFeatureTable = geodatabase.getGeodatabaseFeatureTableByLayerId(0); //create a feature layer
featureLayer = new FeatureLayer(geodatabaseFeatureTable);
mMapView.addLayer(featureLayer);
However, I think if you have part of the layer showed up, you probably known how to do this...
I think the issue may come from the runtime content, check if there is some features that is not supported by runtime content.
For feature and tabular data to be included in the Runtime content, there are a few restrictions to keep in mind:
Dear Mengyi, your input is highly appreciated.
I have only one layer in the GDB.
I wrote the code exactly as you have mentioned above
None of these restrictions is applicable in my case.
No problem.
I will say test your code with the sample data(You can generate a runtime content from OfflineEditor sample) and see if it shows all the features.
And then if it's possible, test your runtime content maybe with another API and see if it works.
But I doubt the issue comes from the runtime content.