<?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 getFeature from geodatabaseFeatureTable in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getfeature-from-geodatabasefeaturetable/m-p/420542#M2861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know the object ID of (OBJECTID) of the feature I want from a local geodatabase on the sd card. I wish to pick it out and display &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this in my on click for my search button...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;try {
&amp;nbsp;&amp;nbsp; searchFeature = geodatabaseFeatureTable.getFeature(2);
&amp;nbsp; } catch (TableException e1) {
&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch block e1.printStackTrace(); }

&amp;nbsp;&amp;nbsp; Geometry searchFeatureGeometry = searchFeature.getGeometry();
&amp;nbsp;&amp;nbsp; Graphic searchGraphic = new Graphic(searchFeatureGeometry, sfs);
&amp;nbsp;&amp;nbsp; GraphicsLayer searchGraphicLayer = new GraphicsLayer();
&amp;nbsp;&amp;nbsp; searchGraphicLayer.addGraphic(searchGraphic);
&amp;nbsp;&amp;nbsp; mMapView.addLayer(searchGraphicLayer);
&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I pass getFeature(1) it works fine but when I pass getFeature(2) the output is null. What is wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forest&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 16:26:07 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2014-06-17T16:26:07Z</dc:date>
    <item>
      <title>getFeature from geodatabaseFeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getfeature-from-geodatabasefeaturetable/m-p/420542#M2861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know the object ID of (OBJECTID) of the feature I want from a local geodatabase on the sd card. I wish to pick it out and display &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this in my on click for my search button...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;try {
&amp;nbsp;&amp;nbsp; searchFeature = geodatabaseFeatureTable.getFeature(2);
&amp;nbsp; } catch (TableException e1) {
&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch block e1.printStackTrace(); }

&amp;nbsp;&amp;nbsp; Geometry searchFeatureGeometry = searchFeature.getGeometry();
&amp;nbsp;&amp;nbsp; Graphic searchGraphic = new Graphic(searchFeatureGeometry, sfs);
&amp;nbsp;&amp;nbsp; GraphicsLayer searchGraphicLayer = new GraphicsLayer();
&amp;nbsp;&amp;nbsp; searchGraphicLayer.addGraphic(searchGraphic);
&amp;nbsp;&amp;nbsp; mMapView.addLayer(searchGraphicLayer);
&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I pass getFeature(1) it works fine but when I pass getFeature(2) the output is null. What is wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forest&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 16:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getfeature-from-geodatabasefeaturetable/m-p/420542#M2861</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2014-06-17T16:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: getFeature from geodatabaseFeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getfeature-from-geodatabasefeaturetable/m-p/420543#M2862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK looks like there is nothing wrong with the code (whether it is the best way to do the job is a different question) but with my geodatabase. When it was made it looks like 2 of the 9 features in it were omitted somehow, because when I call geodatabaseFeatureTable.getNumberOfFeatures(); only 7 is returned. Also, when I pass 3 to getFeature() the expected polygon is returned. Is there a good why to look inside of a runtime geodatabase after it has been made, just to confirm that it is what one thinks it is? &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;Forest&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 18:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/getfeature-from-geodatabasefeaturetable/m-p/420543#M2862</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2014-06-17T18:40:55Z</dc:date>
    </item>
  </channel>
</rss>

