Subtype name in Android

682
3
05-09-2017 06:07 AM
LageplanGöttingen
New Contributor III

Hi,

I have a feature service on ArcGIS for Server which I query in my Android app (using ArcGIS for Android 100.0.0).

The feature service contains subtypes. When I select a feature, I want to display the subtype name in a popup window, but so far I only managed to get the subtype number (coded value), not the name.

Is it possible to get the subtype name in Android?

Thanks!

0 Kudos
3 Replies
AlexanderNohe1
Occasional Contributor III
0 Kudos
LageplanGöttingen
New Contributor III

Thanks, but this only works for domains, not for subtypes, or am I missing something?

Field subtype = getFeatureTable().getField("subtype");
Domain domain = subtype.getDomain();

returns null because I don't have a domain, just the subtype. 
0 Kudos
AlexanderNohe1
Occasional Contributor III

That seems to be it.  If I get some time today, I will test this further and try to discuss with my colleagues.