Android SDK Popup on feature layer

Discussion created by clself on May 30, 2014
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("", 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?