Reputation: 45
Im using a settings activity with a preference.xml to create a settings menu. Im trying to listen to a button click from my settings activity in my main activity. I cant seem to figure out how to accomplish this?
Upvotes: 0
Views: 66
Reputation: 281
You should do that by listening to changes in SharedPreferences
with SharedPreferences#registerOnSharedPreferenceChangeListener().
Upvotes: 1