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:
- Only feature layers, tables, and relationship classes are supported.
- If a feature layer references or participates in a relationship class that references unsupported data, the layer will not be included in the Runtime content.
- All of the layers in the current map must come from the same workspace.