*> Probably I was misunderstooded. * Ahhh... Indeed I did misunderstand
*> My problem is not how to navigate from a parent > preference screen to child preference screen (this is done by framework), but how to navigate from another > activity in my application to child preference screen. How can Preference. * *> **setOnPreferenceClickListener() > help me with this task?* What I did to be able to handle this (it may have been overkill, but it works) is to have each child screen defined in a separate xml file and PreferenceActivity subclass... So the steps I take are as follows: - Create a main preference xml file that contains declarations for preference screens (but no contents) - Create a separate xml file for the contents of each preference screen - Create a Preference subclass for each preference xml file and inflate the appropriate layout - Set click listeners on all of the preference screens to launch the given preference when clicked (this won't happen automatically when doing it this way) - Then, anywhere in my code I can launch the child preference screen just like I would any other activity in my app Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 10, 2011 at 2:06 AM, Zsolt Vasvari <zvasv...@gmail.com> wrote: > setPreferenceScreen(PreferenceScreen) > > On Mar 10, 4:52 pm, "Witold Szymaniak [gmail]" > <witold.szyman...@gmail.com> wrote: > > Probably I was misunderstooded. My problem is not how to navigate from > > a parent > > preference screen to child preference screen (this is done by > > framework), but how to navigate from another > > activity in my application to child preference screen. How can > > Preference.setOnPreferenceClickListener() > > help me with this task? > > > > W dniu 2011-03-10 07:43, Justin Anderson pisze: > > > > > > > > > I Use Preference.setOnPreferenceClickListener() when I want to do > something > > > like this... > > > > > Thanks, > > > Justin Anderson > > > MagouyaWare Developer > > >http://sites.google.com/site/magouyaware > > > > > On Tue, Mar 8, 2011 at 1:20 AM, Witold Szymaniak [gmail]< > > > witold.szyman...@gmail.com> wrote: > > > > >> Hi, in my app I have nested PreferencesScreen's > > > > >> <PreferencesScreen> > > >> <PreferencesScreen android:key="application"> > > > > >> </PreferencesScreen></PreferencesScreen> > > > > >> Now I want to fire Intent to take me from currrent Activity directly > to > > >> "application" preferences subscreen. How can I do this? > > > > >> -- > > >> 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- Hide quoted > text - > > > > - Show quoted text - > > -- > 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 > -- 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