<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PopupInfo on FeatureLayer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643451#M4414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you need the map context to create a new PopupView object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 11:19:20 GMT</pubDate>
    <dc:creator>SimonKlein</dc:creator>
    <dc:date>2012-03-07T11:19:20Z</dc:date>
    <item>
      <title>PopupInfo on FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643450#M4413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to build up a popupinfo to use on a featurelayer. However when I try and use the popupinfo I get an exception saying it is not yet initialized. This happens when calling&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;PopupInfo popupInfo = fLayer.getPopUpInfo();
PopupView popupView = new PopupView(popupContainer.getContext(), popupInfo, g);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong? Here is the code I use to build up the popupinfo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;fLayer = new ArcGISFeatureLayer(queryUrl, ArcGISFeatureLayer.MODE.ONDEMAND);

&amp;nbsp; Map&amp;lt;Integer, PopupInfo&amp;gt; newMap = new HashMap&amp;lt;Integer, PopupInfo&amp;gt;();

&amp;nbsp; PopupInfo pInfo = new PopupInfo();
&amp;nbsp; pInfo.setDescription("South African Post Offices");
&amp;nbsp; pInfo.setTitle("Post Offices");
&amp;nbsp; pInfo.setMaxScale(500000);
&amp;nbsp; pInfo.setMinScale(0);
&amp;nbsp; pInfo.setMediaInfos(new PopupMediaInfo[0]);
&amp;nbsp; pInfo.setShowAttachments(false);

&amp;nbsp; PopupFieldInfo popupFields[] = new PopupFieldInfo[3];

&amp;nbsp; //_name
&amp;nbsp; PopupFieldInfo nameInfo = new PopupFieldInfo();
&amp;nbsp; nameInfo.setFieldName("_name");
&amp;nbsp; nameInfo.setLabel("Name");
&amp;nbsp; popupFields[0] = (nameInfo);

&amp;nbsp; //suburb_are
&amp;nbsp; PopupFieldInfo suburbInfo = new PopupFieldInfo();
&amp;nbsp; suburbInfo.setFieldName("suburb_are");
&amp;nbsp; suburbInfo.setLabel("Suburb");
&amp;nbsp; popupFields[1] = (suburbInfo);

&amp;nbsp; //street_add
&amp;nbsp; PopupFieldInfo streetInfo = new PopupFieldInfo();
&amp;nbsp; streetInfo.setFieldName("street_add");
&amp;nbsp; streetInfo.setLabel("Street Address");
&amp;nbsp; popupFields[2] = (streetInfo);

&amp;nbsp; pInfo.setFieldInfos(popupFields);

&amp;nbsp; newMap.put(0, pInfo);

&amp;nbsp; fLayer.setPopUpInfos(newMap);

&amp;nbsp; mMapView.addLayer(fLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help would be appreciated!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 10:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643450#M4413</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-03-07T10:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: PopupInfo on FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643451#M4414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you need the map context to create a new PopupView object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 11:19:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643451#M4414</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-03-07T11:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: PopupInfo on FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643452#M4415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;have you solve the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could you share? that would be appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/popupinfo-on-featurelayer/m-p/643452#M4415</guid>
      <dc:creator>Yunus_SupriadiWijaya</dc:creator>
      <dc:date>2013-09-06T15:09:27Z</dc:date>
    </item>
  </channel>
</rss>

