Select to view content in your preferred language

Android SDK Popup on feature layer

2563
0
05-30-2014 07:20 AM
CodySelf
New Contributor
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/...", 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?
0 Kudos
0 Replies