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 it works with lowercase for touch as well. I have posted the fixed jar here: http://monkey.mikeloverme.com/monkeyrunner.jar Hope this helps! -Mlove On Jan 4, 7:37 am, mlove <[email protected]> wrote: > I am having the same issue. Any help on the matter would be > appreciated. > > On Dec 14 2010, 7:38 am, 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.- Hide quoted text - > > - Show quoted text - -- 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

