okay. I want to measure the time interval between keypresses.
Say A->B time interval 60ms. IF B was presses before A was released, a negative value should be calculated. How Do i do this? On Sep 2, 2:01 am, Dianne Hackborn <[email protected]> wrote: > Well they would be 0 for a key down. They should be different for a key up. > > > > On Wed, Sep 1, 2010 at 1:48 AM, Tez <[email protected]> wrote: > > I tried subtracting the 2 values. I always get zero. > > > On Sep 1, 1:04 pm, Dianne Hackborn <[email protected]> wrote: > > > On Tue, Aug 31, 2010 at 10:47 PM, Tez <[email protected]> wrote: > > > > 1. what is the getKeyDownTime() method? What does its return value > > > > mean logically? > > > > The time when the key down event occurred. > > > > > 2. what is the getKeyEventTime() method? What does its return value > > > > mean logiccaly? > > > > The time when the current key event occurred. > > > > > 3. I want to measure the time a key was depressed for. > > > > Eg: Key A was pressed for 60 ms. > > > > Subtract the two. > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support, and so won't reply to such e-mails. 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. 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 [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

