[android-developers] Re: Emulate long pression of keys

2012-06-28 Thread Sal Dekku
, DeK On Friday, June 29, 2012 2:52:05 AM UTC+2, Lew wrote: Sal Dekku wrote: I've wrote some code to help me solve the problem, a little application to use as a testbed. Also, here's one of many test units I wrote to emulate the long press. I would just use Robotium, and its 'Solo

[android-developers] Re: Emulate long pression of keys

2012-06-21 Thread Sal Dekku
Hello! I've wrote some code to help me solve the problem, a little application to use as a testbed. Also, here's one of many test units I wrote to emulate the long press. package com.nofatclips.keyevent.test; import com.nofatclips.keyevent.KeyEventsDumpActivity; import

[android-developers] Emulate long pression of keys

2012-06-14 Thread Sal Dekku
Hello! I was wondering if it is possible to emulate the long pression of a device button via the Instrumentation during the execution of an Android Junit test (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 the