Hi is there any way to get the Index of an Element in a Spinner?
I got a spinnner filled with an string array from xml.
What i want to do is set the Spinner to a default value in my subactivity when the Activity is created from a main activity. So what i need is something like spinner.setSelection(spinner.getIndex("string_to_be_preselected")). But the Spinner doesnt seem to have a method to find the Index of an item?