Fixed ArrayAdapter and made this work with API level 8.
Changed the keys to integer.