Sorry, no you can't do this. The soft keyboard is owned by another application and one application can't inject events into another.
On Mon, Jul 27, 2009 at 7:48 AM, Mathieu Plourde <[email protected]>wrote: > > Hello devs, > > I'm using Intrumentation to invoke keystrokes and mouse events, but I > have a problem when trying to do so on the virtual keyboard. If the > virtual keyboard pops up and I want to send a mouse event to click on > a character of the keyboard, I get that error/warning in the console: > > W/WindowManager( 586): Permission denied: injecting pointer event > from pid 1580 uid 10020 to window Window{437522d0 InputMethod > paused=false} owned by uid 10003 > > Is there a way to make it work? I know I can't do instrumentation on > native activites, does the native keyboard acts like a native > activity? > > Thanks. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

