Hi,
Thanks for the reply,.
In that how could we implement uninterupted animation on keydown()
method when there is a long press of the key.
It would be really helpful if you could suggest a way to do it...

On Mar 6, 12:57 pm, Romain Guy <romain...@google.com> wrote:
> You should NOT start animations from other threads,
>
>
>
> On Thu, Mar 5, 2009 at 11:48 PM, ursnavin <ursna...@gmail.com> wrote:
>
> > Hi all,
>
> > Suppose,If the user long presses a key,the animation should run till
> > the keyup...
>
> > For this i tried starting the animation on a new thread with a lock on
> > a flag variable,till the first animation ends.
>
> > Now when the user is still pressing his key,the thread is created with
> > the nxt animation in it....
>
> > On keyup the main thread gets the lock on the flag variable,and relays
> > the child views in thier new position....
>
> > This logic seems to work fine,but after some duration the animation
> > stops and the application simply hangs,
>
> > Is there something that i am missing here.....It would be great if
> > anyone can tell whether the approach followed is correct or should i
> > do something else???
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
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