09-10-2009 06:55 AM
The code posted by you works fine on Bold and Curves, but will it disconnect the call on 4.2.1 OS ?
I have tested the application on Bold and Storm it works fine.
I dont have the device with 4.2.1 OS but I have tested the code on the 4.2.2 Simulator it does not disconnect the incoming call.
Is this a Simulator problem ?
09-10-2009 04:33 PM
Thanks a lot Krishn2 and safycool,
We have tested only to put the thread to sleep for 2 to 3 seconds in between the keydown / keyup event injections and it works alright now
09-11-2009 03:01 AM
I also tested it on simulator 4.6.0 and OS 18.104.22.168 and faced no issue.
Cant you upgrade to higher verison of simulator and OS (on your cell phone)?
12-15-2009 11:12 AM
Hi, anyone have any luck being able to find code that does work on the Bold/Storm without using key injection?
My concern with key injection is the behaviour when the handset is in the holster, as how I understand it is that key injection is disabled in this situation.
12-16-2009 02:54 PM - edited 12-16-2009 03:00 PM
OK, on 4.2.1 KeyCodeEvent constructor is slightly different - it has 4th parameter int time:
which time - The time the key is held, in milliseconds.
This constructor is also present in 4.7.
I tried 100 msc and the code works on 4.2.1 (at least simulator) as well.
In my case I put it in callInitiated(int callid);
P.S. guys (and gals) don't forget to press Star near krishn2's name