How? That is a logic problem. You now have the Android specific
information you need to solve it; only you can be 100% sure of what
the logic problem lying before you is.

I emphasize this because the description you give in another post of a
proposed method for solving this is really quite different  from the
problem I thought you meant. But if you follow my proposal, then
everytime the user clicks anywhere on the one Activity, you get an
onClick event for one of the three Views. This tells you which View as
most recently clicked. You  then set the flag, recording which was
clicked. You already know what Views were clicked up to that point, so
you now have all the information needed to solve the logic problem.

On Aug 19, 2:26 pm, Zwiebel <[email protected]> wrote:
> Thanks, I think that it will help me a lot. And yes how did you say
> I'm not English :) One more question : How I can "check these flags to
> see whether or not the user is selecting in the ORDER  I want?
>
> On aug. 19, 20:29, Indicator Veritatis <[email protected]> wrote:
>
> > You also replied so briefly, if as a non-native English speaker, he
> > was uncertain how you meant each word, he would not GET that "general
> > idea".
>
> > So I will restate it in a manner that should be more clear: 1) make
> > each separate touchable thing a separate View 2) write one touch
> > listener for each View, 3) in that listener, set a boolean variable to
> > be used as a flag: make that variable a variable of the Activity
> > containing all the Views; for now, don't think too hard about
> > lifecycle. Then you can check these flags to see whether or not the
> > user is selecting in the order you want.
>
> > Then, once you have all that working, if you want the app to work
> > correctly even if the user pauses or runs other apps in between, or
> > even if the system kills an app, read the online docs on Activity
> > lifecycle management, 
> > e.g.,http://developer.android.com/guide/topics/fundamentals/activities.html,
> > especially "Managing the Activity Lifecycle".
>
> > On Aug 19, 6:41 am, TreKing <[email protected]> wrote:
>
> > > On Fri, Aug 19, 2011 at 4:51 AM, Zwiebel <[email protected]> wrote:
> > > > Thanks for the answer. Can you give me a short example please? I'm only
> > > > beginner in android and... ok I'm beginner :)
>
> > > I *could*, but that would rob you of valuable experience. I gave you the
> > > general idea - now just try something. If it doesn't work, let us know 
> > > what
> > > you tried and what's not working and we can help further.
>
> > > ---------------------------------------------------------------------------
> > >  ----------------------
> > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > > transit tracking app for Android-powered devices

-- 
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