BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-09-2008, 03:32 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Events not being sent immediately

Please Login to Remove!

Hi.

Anyone have a clue on this?

I implemented PhoneListener.
on callConnected(int arg0) I inject few commands.
The trace shows that the events are not being sent immediately.

Example:
Code:
public void callConnected(int arg0) {
       System.out.println("Entering callConnected handler ");
KeyCodeEvent keyEvnt;
       
        keyEvnt= new KeyCodeEvent(KeyCodeEvent.KEY_DOWN, ((char) Keypad.KEY_MENU), 0);
        keyEvnt.post();
        System.out.println("EVENT: KeyCodeEvent: menu - down");
        keyEvnt = new KeyCodeEvent(KeyCodeEvent.KEY_UP, ((char) Keypad.KEY_MENU), 0);
        keyEvnt.post();
        System.out.println("EVENT: KeyCodeEvent: menu - up");

//...
        try {
          Thread.sleep(2000);
        } catch (InterruptedException ex) {
          ex.printStackTrace();
        }
//...
        System.out.println("Exiting callConnected handler ");
}
The trace shows that the events are sent (injected) but they are executed right after the "Exiting ..." trace.

The sleep commands are added so I can track the sequence of events.

(I am using 8110 simulator)
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Asco 8215G030 2-Way Aluminum Solenoid Valve, 3/4", Normally Closed, 120 Volts
$4.99
Asco 8215G030 2-Way Aluminum Solenoid Valve, 3/4Mac Valves 45A-AA1-DFFA-1CM Solenoid 1/8" 45AAA1DFFA1CM W/ Exhaust Damper 24VDC
$21.99
Mac Valves 45A-AA1-DFFA-1CM Solenoid 1/8 Humphrey H113-4E2-83-PSL, 24VDC, 20~100 PSI, Air Solenoid Valve
$25.0
 Humphrey H113-4E2-83-PSL, 24VDC, 20~100 PSI, Air Solenoid Valve picture4 of GEEPLUS F194C-6V.0836 LINEAR SOLENOIDS
$14.99
4 of GEEPLUS F194C-6V.0836 LINEAR SOLENOIDS pictureLedex Solenoid 0122 810-280-330 Cage 81840 Used
$9.0
Ledex Solenoid 0122 810-280-330 Cage 81840 Used picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.