[android-developers] Re: Current Preference Screen? (easyy)

2009-04-05 Thread Noam
? On Apr 1, 6:50 pm, Noam noam.ha...@gmail.com wrote: Is my code worth anything? --~--~-~--~~~---~--~~ 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: Current Preference Screen? (easyy)

2009-04-01 Thread Noam
Is my code worth anything? --~--~-~--~~~---~--~~ 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

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-31 Thread Peli
Do you use onPreferenceTreeClick(PreferenceScreen, Preference)? If not, it would probably help if you could post your code here. Otherwise it is very difficult to see what you have already done and what you are trying to do... It really should not be difficult what you are trying to

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-31 Thread Noam
Craig - None of your responses are valid because I am using the two PreferenceScreens in the same .java file, so that wouldn't help. Peli - No, I do not use onPreferenceTreeClick(PreferenceScreen, Preference). This is my code: @Override public void onCreate(Bundle icicle) {

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-31 Thread Noam
Anyone? --~--~-~--~~~---~--~~ 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: Current Preference Screen? (easyy)

2009-03-30 Thread Peli
How do you know that i is equal to 1 on screen A and i equal to 2 on screen B? Where do you set it? Can't you check there directly? Have you looked at the API demos for PreferenceActivity? Peli On Mar 30, 5:42 am, Noam noam.ha...@gmail.com wrote: Thanks Peli for your contribution to my

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-30 Thread Noam
How do you know that i is equal to 1 on screen A and i equal to 2 on screen B? Where do you set it? Can't you check there directly? That is exactly what I want to find out - how to make i equal to 1 on screen A and how to make i equal to 2 on screen B. That is what I want to do and haven't found

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-30 Thread Peli
Have you tried to override the onResume() method of your PreferenceActivity? http://developer.android.com/reference/android/preference/PreferenceActivity.html Peli On Mar 31, 12:27 am, Noam noam.ha...@gmail.com wrote: How do you know that i is equal to 1 on screen A and i equal to 2 on screen

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-30 Thread Noam
Yes, I have tried that but it still doesn't work. I think it's because both of the PreferenceScreens are in the same .java file, so it never gets to the onResume() point. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-30 Thread Noam
Does anyone have a solution? Thanks, Noam. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-30 Thread craig3353
Actually, Noam, I think you need to clarify where your problem is. Here are some method names to become familiar with: Activity.onCreate(Bundle) Activity.onSaveInstanceState(Bundle) The first time through onCreate, the Bundle parameter will be null. Before pausing, your onSaveInstanceState

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-29 Thread Peli
Whenever i = 2, I want to run a certain method. Is there a way to get this to work? if (i == 2) { runCertainMethod(); } I'm sure this is *not* what you wanted to know, but I have no idea what your i is and who sets it... Peli www.openintents.org On Mar 26, 12:49 am, Noam

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-29 Thread Noam
Thanks Peli for your contribution to my problemo. The default for the integer i will be 1. I have two PreferenceScreens - A and B. Whenever the user is on PreferenceScreen A, i will be equal to 1. Whenever the user is on PreferenceScreen B, i will be equal to 2. Basically, I want to know when the

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-29 Thread Noam
Thanks Ralf. Where in the documentation might I find a list of what override methods I could use? For example onClick, onAttachedToActivity, onCreateView, etc.? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-29 Thread Ralf
Did you consider simply subclassing PreferenceScreen and overriding some of its methods? There are various methods such as onClick, onAttachedToActivity, onCreateView, etc., that might give you the behavior you're looking for. R/ On Sun, Mar 29, 2009 at 8:42 PM, Noam noam.ha...@gmail.com wrote:

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-28 Thread Noam
? --~--~-~--~~~---~--~~ 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: Current Preference Screen? (easyy)

2009-03-26 Thread Noam
Anyone?? On Mar 25, 4:22 pm, Noam noam.ha...@gmail.com wrote: Do I need to clarify? --~--~-~--~~~---~--~~ 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: Current Preference Screen? (easyy)

2009-03-25 Thread Noam
Do I need to clarify? --~--~-~--~~~---~--~~ 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