Skip to content

ODK Collect Tag Intent Extras

Nicholas Hallahan edited this page Feb 17, 2015 · 2 revisions

The ability to send structured data via Android intents is limited to sending string key value hashes. Values can either be a string or an array of strings.

Since an XForm can define required tags for an OSM Feature along with potential values and labels for both the OSM tag keys and values, we have formatted this structured data as such:

TAG_KEYS = [tagKey]
TAG_LABEL.tagKey = label
TAG_VALUES.tagKey = [tagValue]
TAG_VALUE_LABEL.tagKey.tagValue = label

The left side of the equals sign is the key to the extra. [] denotes that the value is an array.