Rather than using a thread, you might want to schedule a "task" delayed by
a certain amount.

There are several ways to do this with the Android framework, here is one:

http://developer.android.com/reference/android/view/View.html#postDelayed(java.lang.Runnable,
long)

-- K

26 января 2012 г. 20:34 пользователь Oliviu Vais <oliviu.v...@gmail.com>написал:

> I have tried those events. I need to use a while loop, but when i use
> it within my ontouch i get an error on my device, it goes forever. I
> read somewhere i need to put it in a new thread. Can you please show
> me how can i do that?
>
> On Jan 26, 5:09 am, TreKing <treking...@gmail.com> wrote:
> > On Wed, Jan 25, 2012 at 4:04 PM, Oliviu Vais <oliviu.v...@gmail.com>
> wrote:
> > > I cannot get this to work. When i press the button it registers as a
> > > single click, then it releases the touch. HELP!!!
> >
> > Have you tried all of the motion-centric events described here:
> http://developer.android.com/reference/android/view/View.html?
> >
> >
> ---------------------------------------------------------------------------
> ----------------------
> > 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to