Noam wrote: > I have tried that, but since both A and B are in the same java file, > then it won't work.
Oh, oops. Sorry. Have you tried overriding onContentChanged()? I'm not sure when that all gets called, but there's a decent chance it is called when the screen changes content. That would probably trap both B->A and A->B; you'd need to figure out how to track which is which (e.g., also override onPreferenceTreeClick()). If that doesn't help, since PreferenceActivity extends ListActivity, you might try calling registerDataSetObserver() on the activity's ListAdapter and see if the DataObserver gets control when screens change. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---