Hi everyone!

I'm using SharedPreferences to store the user's settings in my app.

I have registered a onSharedPreferencesChangedListener and I can get
the values from it without problem.
But if I try to see what the "key" parameter is (for example comparing
it to my keys to see which value was changed) the whole app crashes.
Same thing if I try to print the key-value using the Log.

Anyone knows why this happens?

The reason I want to know the key value is because the user can choose
between solid background or image from the gallery.
So when the user chooses an option, I want to either pop up a color
picker or the gallery. Is there a different way of doing this without
using the key? Another event of some sort?

Thanks for any help!

Andreas

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to