[android-developers] Re: Question about Preference Screen

2009-03-04 Thread Ridhish
how do i create the options menu for the child preference screen ? On Feb 10, 8:33 am, robert wrote: > Dear Christoph >     I got the non-null return from inner screen, just like you said, > thanks a lot for your help! > > On Feb 10, 10:27 am, Christoph Studer wrote: > > > From the code > > he

[android-developers] Re: Question about Preference Screen

2009-02-09 Thread robert
Dear Christoph I got the non-null return from inner screen, just like you said, thanks a lot for your help! On Feb 10, 10:27 am, Christoph Studer wrote: > From the code > here:http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... > it looks like mDialog is only valid when

[android-developers] Re: Question about Preference Screen

2009-02-09 Thread robert
I just try to invoke the method and make sure their functions, so it's weird when I got null when invoked getDialog() I'll try as you said in inner screen later and post the result here. Thanks for your help! On Feb 10, 10:27 am, Christoph Studer wrote: > From the code > here:http://android.git

[android-developers] Re: Question about Preference Screen

2009-02-09 Thread Christoph Studer
>From the code here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/preference/PreferenceScreen.java;h=9929b963755e03609c37822b01fe101f3ce575a2;hb=HEAD it looks like mDialog is only valid when that particular (inner) PreferenceScreen is shown, i.e. when yo

[android-developers] Re: Question about Preference Screen

2009-02-09 Thread robert
Dear Christoph Thanks for ur reply:) I've tried as you said and I got the concept of the structure.But there is still a problem when I use the getDialog() method. I found that the return of this method is null when using it in my program but not null when I use ddms to debug and check the mDialog,

[android-developers] Re: Question about Preference Screen

2009-02-09 Thread Christoph Studer
When the PreferenceActivity encounters nested PreferenceScreens in the hierarchy, it will add the inner PreferenceScreen as a list entry (similar appearance as e.g. for a EditTextPreference) to the outer PreferenceScreen. When the user clicks on this list entry, the contents of the inner Preferenc