<?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: getting Graphics after STATUS.LAYER_LOADED in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getting-graphics-after-status-layer-loaded/m-p/193359#M1292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to get the FeatureTable from the FeatureLayer after it is loaded.&lt;/P&gt;&lt;P&gt;Have you tried something like this?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; long count = feature_layer.getFeatureTable().getNumberOfFeatures(); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 19:43:37 GMT</pubDate>
    <dc:creator>EricBader</dc:creator>
    <dc:date>2015-09-09T19:43:37Z</dc:date>
    <item>
      <title>getting Graphics after STATUS.LAYER_LOADED</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getting-graphics-after-status-layer-loaded/m-p/193358#M1291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to read the attributes of the Features on a FeatureLayer (snapshot mode) directly after the feature was loaded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But after the feature layer was loaded i found the following problems:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(STATUS.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;LAYER_LOADED &lt;/SPAN&gt;== status &amp;amp;&amp;amp; source == &lt;SPAN style="color: #9876aa;"&gt;feature_layer&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // HIER: count == 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int count = feature_layer.getNumberOfGraphics(); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ////ALTERNATIVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // HIER: Throw an exception&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicsLayer gl = (GraphicsLayer) feature_layer;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;/SPAN&gt;[] ids = gl.getGraphicIDs()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;id : ids){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic g = gl.getGraphic(id);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .... &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where can I insert my code to use the data of the features on layer after they was loaded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 16:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getting-graphics-after-status-layer-loaded/m-p/193358#M1291</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2015-09-03T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: getting Graphics after STATUS.LAYER_LOADED</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getting-graphics-after-status-layer-loaded/m-p/193359#M1292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to get the FeatureTable from the FeatureLayer after it is loaded.&lt;/P&gt;&lt;P&gt;Have you tried something like this?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; long count = feature_layer.getFeatureTable().getNumberOfFeatures(); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getting-graphics-after-status-layer-loaded/m-p/193359#M1292</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2015-09-09T19:43:37Z</dc:date>
    </item>
  </channel>
</rss>

