> 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 <[email protected]> wrote:
> Hello everyone,
> I have two PreferenceScreens - A and B.
> Let's say that the default for the variable i = 0;
> PrefScreen B is a child screen of A.
>
> When I first get to A, i = 0;
> When I move to B, i = 1;
> When I move BACK to A, i = 2;
> when I move back to B, i = 1 again;
>
> Whenever i = 2, I want to run a certain method.
>
> Is there a way to get this to work?
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to