I'm getting error when i use

`String a=(String)spinner.getSelectedItem();`

log is:

```
      java.lang.IndexOutOfBoundsException: Invalid index 220, size is 7
      at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
      at java.util.ArrayList.get(ArrayList.java:308)

```

but my list has not 7 item!!