I read with BufferedReader text from a system file; this text contains, for example, 5 WORDS, but in another case it can contain fewer or more words. Then I put this text (t
Here is solution, thanks to sfratini for help.
Use:
spinner.setSelection(getIndex(spinner, myString));
Then:
private int getIndex(Spinner spinner, String myString){ int index = 0; for (int i=0;i