Yes I thought about that. but since the app has to be restarted on theme change - i did not want to do it as soon as the preferences changed. they might want to do other things in the preferences. the place to do seems to be when they're backing out of the pref page.
i've solved this problem by intercepting the back key and then sending the result back to the caller with setResult(). though i appreciate your suggestion. On Saturday, January 5, 2013 3:27:58 AM UTC-5, skink wrote: > > > > dashman wrote: > > Thanks. > > > > I see how this can be done. > > > > Now from the main app, I open a preferences screen that allows the user > to > > select > > a theme. > > > > But I don't want to restart the app right there - user might want to do > > other things. > > > > From the main app, how can I detect that the Preferences screen was > closed. > > > > This way I can detect there was a change to the theme and then restart > the > > activity. > > > > > > prefs.registerOnSharedPref > erenceChangeListener() > > pskink > -- 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

