[android-developers] Re: PreferenceScreen Close

2009-03-24 Thread Noam
Anyone please? --~--~-~--~~~---~--~~ 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] Re: PreferenceScreen Close

2009-03-23 Thread Noam
Mark, The onContentChanged() did not seem to do the trick. I am still trying to figure out how to do the second option. I have tried looking for code that contains the DataSetObserver but have not found any. Can you please write an example code to show me how it works? Thanks, Noam.

[android-developers] Re: PreferenceScreen Close

2009-03-23 Thread Noam
This is what I have so far: ListAdapter thisListAdapter = this.getListAdapter(); --~--~-~--~~~---~--~~ 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] Re: PreferenceScreen Close

2009-03-22 Thread Noam
Let me rephrase my question. I have two PreferenceScreens - A and B. In PrefScreen A, there is an option to go to B. When the user is on B, and then leaves B and goes back to A, I would want to run a certain method. Is there a way to do that? Thanks, Noam.

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Mark Murphy
Noam wrote: Let me rephrase my question. I have two PreferenceScreens - A and B. In PrefScreen A, there is an option to go to B. When the user is on B, and then leaves B and goes back to A, I would want to run a certain method. Is there a way to do that? Implement onResume() in A. --

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Noam
I have tried that, but since both A and B are in the same java file, then it won't work. If I misunderstood, please clarify. Any other suggestions? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Mark Murphy
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

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Noam
Thanks for that incredible answer. Since I'm such a noobie, I hardly understand anything from that paragraph. Could you please show me some code so I could understand better? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Mark Murphy
Noam wrote: Thanks for that incredible answer. It couldn't be all that incredible. ;-) Since I'm such a noobie, I hardly understand anything from that paragraph. Could you please show me some code so I could understand better? Well, not really, because I've never tried either of them

[android-developers] Re: PreferenceScreen Close

2009-03-05 Thread Noam
Anyone? On Mar 4, 6:53 pm, Noam noam.ha...@gmail.com wrote: Hello everyone, Is there a certain way for me to know when a PreferenceScreen is closed? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: PreferenceScreen Close

2009-03-05 Thread Ludwig
There is a OnPreferenceChangeListener, which is not quite the same as knowing when the screen is closed, but it gives you a hook whenever a user changes a setting. Otherwise I would not think so as it would be eavesdropping on a user... HTH Ludwig 2009/3/5 Noam noam.ha...@gmail.com Hello