[android-developers] Re: monkeyrunner - How to simulate long press

2011-01-14 Thread parphane
Hi, Don't know if my last answer got through because I can't see it. Here's what I wrote. Hope it'll not be in double. 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,

[android-developers] Re: monkeyrunner - How to simulate long press

2011-01-14 Thread parphane
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

[android-developers] Re: monkeyrunner - How to simulate long press

2011-01-14 Thread mlove
I found a solution for the press where you can just use lowercase 'down' and 'up' instead of the upper case 'DOWN' and 'UP' I figured this out by looking at the source code for MonkeyDevice.java. Also the code has one bug in it for touch but recompiled the source into the monkeyrunner.jar so that

[android-developers] Re: monkeyrunner - How to simulate long press

2011-01-04 Thread mlove
I am having the same issue. Any help on the matter would be appreciated. On Dec 14 2010, 7:38 am, swarup 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 sho