View Single Post
Old 08-02-2010, 07:46 AM   #1 (permalink)
smokingfly
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: Storm
PIN: N/A
Carrier: Vodafone
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default END Call button event issue.

Please Login to Remove!

Hi All,

I am writting an application for Strom 2 9520. My application is a background application & it uses the PhoneListener events. When user dials a number, my application captures "CallInitiated" event. Then, in my code, I disconnect the call & in "callDisconnected" event, I displayed a message "Call Disconnected".
On simulator it works fine. But , whne I load the application on device, it doesn't work properly.
When I run on device, & make a call, "Callinitiated" event occurs, but call doesn't disconnected.


Following is the code I wriiten to disconnect the call:
EventInjector.KeyCodeEvent ev = new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEv ent.KEY_DOWN, ((char)Keypad.KEY_END), KeypadListener.STATUS_NOT_FROM_KEYPAD);

EventInjector.invokeEvent(ev);
**********************************************

I think, my code doesn't trigger the END key. But it works fine on simulator.

Please help me. Thanks in advance.
Offline   Reply With Quote