I am trying to build a popup from a feature layer and I am having issues. I have a feature layer defined as : ArcGISFeatureLayer fLayer = new ArcGISFeatureLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/LocalGovernment/Recreation/FeatureServer/0", ArcGISFeatureLayer.MODE.ONDEMAND); And it gets added to the map correctly. But when I try to get popupinfo from the layer the result is always null so in the below line p is always null: ArcGISPopupInfo p=fLayer.getPopupInfo(); What am I doing wrong? How do I get popupinfo from a feature layer?
... View more