I also found a workaround for not hardcoding values for testing spinner's selected values, we need to put 2 arrays in the array.xml resource (and just translations in various strings.xml).
For pois:
<pre>
<string-array name="poi_types"> <item>@string/atm</item> <item>@string/cafe</item> <item>@string/cinema</item> <item>@string/fuel</item> <item>@string/hospital</item> <item>@string/hotel</item> <item>@string/parking</item> <item>@string/police</item> <item>@string/pub</item> <item>@string/restaurant</item>
</string-array>
<string-array name="poi_types_osmvalue"> <item>atm</item> <item>cafe</item> <item>cinema</item> <item>fuel</item> <item>hospital</item> <item>hotel</item> <item>parking</item> <item>police</item> <item>pub</item> <item>restaurant</item>
</string-array>
</pre>
For transport:
<pre>
<string-array name="mode_of_transport_types">
<item>@string/car</item>
<item>@string/bicycle</item>
<item>@string/walking</item>
</string-array>
<string-array name="mode_of_transport_types_osmvalue">
<item>motorcar</item>
<item>bicycle</item>
<item>foot</item>
</string-array>
</pre>
This way, we request the spinner's selected position and then request the same position for the other array for generic value.
The best way could be to access the name in the same array's value but I think it's not possible.
What do you think of that integrated poi search?
I also found a workaround for not hardcoding values for testing spinner's selected values, we need to put 2 arrays in the array.xml resource (and just translations in various strings.xml).
<item> @string/ atm</item>
<item> @string/ cafe</item>
<item> @string/ cinema< /item>
<item> @string/ fuel</item>
<item> @string/ hospital< /item>
<item> @string/ hotel</ item>
<item> @string/ parking< /item>
<item> @string/ police< /item>
<item> @string/ pub</item>
<item> @string/ restaurant< /item> types_osmvalue" >
<item> atm</item>
<item> cafe</item>
<item> cinema< /item>
<item> fuel</item>
<item> hospital< /item>
<item> hotel</ item>
<item> parking< /item>
<item> police< /item>
<item> pub</item>
<item> restaurant< /item> of_transport_ types"> @string/ car</item> @string/ bicycle< /item> @string/ walking< /item> of_transport_ types_osmvalue" > motorcar< /item> bicycle< /item>
For pois:
<pre>
<string-array name="poi_types">
</string-array>
<string-array name="poi_
</string-array>
</pre>
For transport:
<pre>
<string-array name="mode_
<item>
<item>
<item>
</string-array>
<string-array name="mode_
<item>
<item>
<item>foot</item>
</string-array>
</pre>
This way, we request the spinner's selected position and then request the same position for the other array for generic value.
The best way could be to access the name in the same array's value but I think it's not possible.