Responding to preference updates in Android

Posted by hgpc on Stack Overflow See other posts from Stack Overflow or by hgpc
Published on 2010-05-01T13:30:32Z Indexed on 2010/05/01 13:37 UTC
Read the original article Hit count: 219

I am calling a PreferenceActivity from another activity and then updating the application state (ie: changing the font size) on onActivityResult, based on the preference changes.

I was thinking it would be better to put the state update logic in the PreferenceActivity. That way I don't have the duplicate the logic in each activity that calls the PreferenceActivity.

What's the best or correct way to do this?

© Stack Overflow or respective owner

Related posts about android

Related posts about preferenceactivity