I know the object ID of (OBJECTID) of the feature I want from a local geodatabase on the sd card. I wish to pick it out and display I have this in my on click for my search button...try {
searchFeature = geodatabaseFeatureTable.getFeature(2);
} catch (TableException e1) {
// TODO Auto-generated catch block e1.printStackTrace(); }
Geometry searchFeatureGeometry = searchFeature.getGeometry();
Graphic searchGraphic = new Graphic(searchFeatureGeometry, sfs);
GraphicsLayer searchGraphicLayer = new GraphicsLayer();
searchGraphicLayer.addGraphic(searchGraphic);
mMapView.addLayer(searchGraphicLayer);
}
when I pass getFeature(1) it works fine but when I pass getFeature(2) the output is null. What is wrong here?Thanks so much for any help,Forest