Select to view content in your preferred language

Subtype name in Android

875
3
05-09-2017 06:07 AM
LageplanGöttingen
Occasional Contributor

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
Honored Contributor
0 Kudos
LageplanGöttingen
Occasional Contributor

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
Honored Contributor

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