Skip to content Skip to sidebar Skip to footer

Android Preferences Error

In my app, I am trying to set up preferences that allows you to change the background image of a layout from a ton of choices in a ListPreference. My preferences xml:

Solution 1:

Your issue is that the index you are using is greater than the size of the array. The actual line from the Android source that is failing is this:

Stringvalue= mEntryValues[mClickedDialogEntryIndex].toString();

So you probably have a mismatch in the length of the @array/teams and the @array/teams_values or you have a wholly incorrect value in there.

Post a Comment for "Android Preferences Error"