Emulate long pression of keys

37 views
Skip to first unread message

DeK

unread,
May 30, 2012, 12:34:32 PM5/30/12
to robotium-...@googlegroups.com
Hello!

I was wondering if it is possible to emulate the long pression
of a device button (i.e. long pressing HOME to open the
Recent Tasks or long pressing VOL DOWN in eBook
readers to go down a page)

I tried to play with Robotium's own sendKey() and then
directly with the source code of sendKeyDownUp() in
the Instrumentation to no avail.

Thanks in advance

DeK

naveed

unread,
May 31, 2012, 10:31:51 AM5/31/12
to robotium-...@googlegroups.com
Hi, 

For this you will have to find out which app is intended for these features (HOME, Menu etc..), After getting specific app you will have to re-sing it and all done

This is the way out but I am not about, Android may have some restrictions on accessing utilities apps of device. 
Reply all
Reply to author
Forward
0 new messages