Thanks.I have thought about this method, but it seems that only DOWN, UP and MOVE actions can trigger onTouchEvent.Indeed, i can use getDownTime() on UP action, but how to use getDownTime() after the DOWN action? I wanna detect the longpress event like the MapActivity.
On May 4, 10:26 pm, "Evan JIANG" <[EMAIL PROTECTED]> wrote: > Hi, > What about in onTouchEvent, check the MotionEvent event's getDownTime()? > > Regards, > Evan JIANG > > On Sun, May 4, 2008 at 10:16 PM, Chenguo <[EMAIL PROTECTED]> wrote: > > > hi,everyone! > > Can anybody tell me that how to detect longpress on touchscreen and > > get the longpress-point's location in ImageView?I tried to use > > OnLongClickListener, but it seems that onTouchEvent can not work when > > OnLongClickListener is set. > > I suffered this for days.Can anybody give me some advice? Thanks! > > > -------------- > > Chenguo > > 2008-05-04 --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

