On Wed, May 18, 2011 at 4:05 AM, souissi haythem <[email protected]> wrote:
> my goal is to target with a keyevent a specific application running
> either in foreground or background from a background service.

AFAIK, this is impossible, for obvious security reasons.

> And before anyone asks, I added the
>
>    android.permission.INJECT_EVENTS

I do not believe that SDK applications can successfully receive this permission.

>    * some of you know how I can manage to do target a specific
> application with a keystroke event from a service?

AFAIK, you can't.

>    * some of you know how to do the same with the phone application
> specificely?

AFAIK, you can't.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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

Reply via email to