[android-developers] Re: how to inject a KeyEvent

2009-01-16 Thread Rajendrakumar C
Hi Dianne Hackborn, Am also facing the same problem, can tell me wheather you got the solution for the problem or not? On Nov 22 2008, 5:23 am, Dianne Hackborn hack...@android.com wrote: Correct, one application can not inject key events into another application.  There should be no way

[android-developers] Re: how to inject a KeyEvent

2008-11-26 Thread Michael
That kinda seems like the wrong way to do things, simulating key events. But anyways, if you want to pass data between Activities, you add it into the Intent. See putExtra() and getExtra(). - michael --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: how to inject a KeyEvent

2008-11-26 Thread Dianne Hackborn
There is no plan at this point, though I imagine some time in the future some of these things may be allowed maybe under the guise of telling the user that the application can do anything they can or such. On Sat, Nov 22, 2008 at 8:33 AM, Dorn Hetzel [EMAIL PROTECTED] wrote: Is that a

[android-developers] Re: how to inject a KeyEvent

2008-11-23 Thread Marcio Alexandroni
I'm just wondering about these security issues, injecting events, access to some low level APIs, screen lock, telephony, etc. I've been developing on other mobile operating systems for years and all them allow this kind of technique, it's valuable for some kind of applications, mainly in

[android-developers] Re: how to inject a KeyEvent

2008-11-23 Thread Marcio Alexandroni
Hi, I've been just wondering about these security issues, injecting events, access to some low level APIs, screen lock, telephony, etc. I've been developing on other mobile operating systems for years and all them allow this kind of technique, it's valuable for some kind of applications, mainly

[android-developers] Re: how to inject a KeyEvent

2008-11-22 Thread Dorn Hetzel
Is that a permanent, security related, state if the droid, or is it thought that someday, with the right permissions, or between consenting applications, this would be allowed? :) On Fri, Nov 21, 2008 at 7:23 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: Correct, one application can not inject

[android-developers] Re: how to inject a KeyEvent

2008-11-21 Thread dreamerBoy
Hi Hackbod - I tried this using Instrumentation - The goal of this little program is to make an outgoing call and then generate a keypress on the ENDCALL button. 1. It appears that I am incapable of unlocking the keyguard: 11-21 14:40:58.445: INFO/InstTest(209): after

[android-developers] Re: how to inject a KeyEvent

2008-11-21 Thread Dianne Hackborn
Correct, one application can not inject key events into another application. There should be no way around this. For instrumentation test cases that cross application boundaries, I strongly recommend you set up an ActivityMonitor to block the launching of that other application's activity,

[android-developers] Re: how to inject a KeyEvent

2008-11-14 Thread hackbod
On Nov 13, 4:42 pm, dreamerBoy [EMAIL PROTECTED] wrote: What gave me hope is that there was an injectKeyEvent method on WindowManager in the last API release.   See:http://www.anddev.org/throwing-simulating_keystrokes_programatically-... That was never in the SDK; that is a private API that