Note that the key event injection is inside the SAME application. I am NOT trying to contact a foreign application to simulate e.g., user behavior.
Hackbod was going on about InstrumentationTestCase to handle that situation but I don't think that this case is from the same mold (application contacting a foreign application). On Nov 13, 4:13 pm, dreamerBoy <[EMAIL PROTECTED]> wrote: > I'm building a test application and I have to be able to hang up a > call in an automated fashion. > > It occurred to me that I might be able to inject a key event: > > KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, > KeyEvent.KEYCODE_ENDCALL ); > > into the event queue somehow. > > Apparently the last incarnation of the API had an injectKeyEvent() > method in WindowManager but that's been stripped out. > > Anyone know how to do it in 1.0? > > Thanks much. > > dreamer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

