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 source code of sendKeyDownUpSync()
from android.app.Instrumentation, writing my own version to add
a pause between the down event and the up event and/or a
FLAG_LONG_PRESS to the up KeyEvent, to no avail.

Thanks in advance

DeK

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to