Hello!
I'm trying to check if a feature table (from a geodatabase created in ArcMap 10.3 and also in 10.5, as described here http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-arcmap/creating-arcgis-runtime-content.htm) has geometry, but it always returns false. The original .mxd file always have at least one layer with geometry. When I debugged the code I noticed that the data inside the tables was inaccessible. getType() returns "UNKNOW", getFields() returns null and so on.
Here's the sample code I followed from this link https://developers.arcgis.com/android/latest/sample-code/feature-layer-geodatabase.htm
FeatureLayer geometryLayer<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">final</SPAN> Geodatabase localGeodatabase <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Geodatabase</SPAN><SPAN class="punctuation token">(</SPAN>geodatabasePath<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
localGeodatabase<SPAN class="punctuation token">.</SPAN><SPAN class="token function">addDoneLoadingListener</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Runnable</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
@Override
<SPAN class="keyword token">public</SPAN> <SPAN class="keyword token">void</SPAN> <SPAN class="token function">run</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">for</SPAN><SPAN class="punctuation token">(</SPAN>GeodatabaseFeatureTable featureTable <SPAN class="operator token">:</SPAN> localGeodatabase<SPAN class="punctuation token">.</SPAN><SPAN class="token function">getGeodatabaseFeatureTables</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN>featureTable<SPAN class="punctuation token">.</SPAN><SPAN class="token function">hasGeometry</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
dataLayer <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">FeatureLayer</SPAN><SPAN class="punctuation token">(</SPAN>featureTable<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">return</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
localGeodatabase<SPAN class="punctuation token">.</SPAN><SPAN class="token function">loadAsync</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>Did I do something wrong?
I'm using API 100.1 for android