Hi, I've found a way to simulate a long push on the screen. For the menu button or else, I just don't know how to proceed.
Here's the code : device.drag((150,300), (150,300), 10, 1) Basicaly, you just have to use the "drag" function with the same point for "start" and "end", you can adjust the time to 3-4 seconds I think, do not put something else than 1 for the steps. On 14 déc 2010, 13:38, swarup <[email protected]> wrote: > Hi, > any clue how to simulate long key press in MonkeyRunner? E.g. Long > press on HOME key, or long press on list item to invoke context- > sensitive-menu. > I was expecting it should happen by the following code or similar > code: > > device.press('KEYCODE_HOME','DOWN') > > but unfortunately only DOWN press also behaving like DOWN_AND_UP. > There is no difference between these two. -- 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

