[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-03 Thread Mathieu Plourde
For the listview part, I found it. I used performItemClick. But for generating keystrokes, nothing seems to work. I tried using onKeyDown and onKeyUp, but it just doesn't do anything (and I need to generate the key strokes from the application). The only thing that seemed to have a result is

[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-03 Thread Dianne Hackborn
Test code should use Instrumentation, which allows you to inject your code into the application and control it through the methods there. On Fri, Jul 3, 2009 at 12:59 PM, Mathieu Plourde mat.plou...@gmail.comwrote: For the listview part, I found it. I used performItemClick. But for

[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-02 Thread Mark Murphy
Mathieu Plourde wrote: 1. How do you programmatically generate key strokes? I found some tutorials where it says to use IWindowManager, but that doesn't exist anymore in 1.5. (And WindowManager doesn't provide any function to generate key strokes) For your own activity, you could try