BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-05-2009, 05:20 AM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: curve
PIN: N/A
Carrier: Orange
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Disconnect call

Please Login to Remove!

Hi all,

The following code works fine in the JDE simulator (v4.5.0.44) but fails (call is never disconnected) in a v4.5.0.55 BB8310.

Code:
EventInjector.KeyCodeEvent pressEndKey = 
	new EventInjector.KeyCodeEvent(
	KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END,
	KeypadListener.STATUS_NOT_FROM_KEYPAD, 100);
EventInjector.KeyCodeEvent releaseEndKey = 
	new EventInjector.KeyCodeEvent(
	KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END,
	KeypadListener.STATUS_NOT_FROM_KEYPAD, 100);
	
try {
	EventInjector.invokeEvent(pressEndKey);
	EventInjector.invokeEvent(releaseEndKey);
} catch (Exception ex) {
	ex.printStackTrace();
}
As noted in other posts, I played around with some Thread.sleep before and between the invokeEvents, no change.

Any suggestions?
Any better way to disconnect call other than simulate button events?

Cheers,
-me
Offline  
Old 08-05-2009, 08:38 AM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: curve
PIN: N/A
Carrier: Orange
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The security policy on this device can not be altered, is this the reason for the failure?
Offline  
Old 08-06-2009, 04:38 PM   #3 (permalink)
New Member
 
Join Date: Aug 2009
Model: curve
PIN: N/A
Carrier: Orange
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK problem solved.
the security policy has nothing to do with it, but permissions must be set for the application. This is done by:Options --> Advanced Options --> Applications
Right click on your application and select Edit Permissions.
Then make sure that Interactions = Allow.

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

Lot of 5 Polycom CX300 Desktop VoIP Phones Microsoft Lync w/Handsets USB - Good
$150.0
Lot of 5 Polycom CX300 Desktop VoIP Phones Microsoft Lync w/Handsets USB - Good pictureLot of (5) Shoretel IP115 VOIP Phones with Stand & Headset -
$124.95
Lot of (5) Shoretel IP115 VOIP Phones with Stand & Headset -   pictureLot (5) Cisco CP-7937G Unified VoIP Conference Station Phone 2201-40100-001
$160.0
Lot (5) Cisco CP-7937G Unified VoIP Conference Station Phone 2201-40100-001 pictureVOIP System-Patton 4114/JO/EUI, Gigabit POE power, H3C 26 ports switch, Yealink
$99.0
VOIP System-Patton 4114/JO/EUI, Gigabit POE power, H3C 26 ports switch, Yealink pictureRede Camp 8 Channel GSM Voip Terminal
$600.0
Rede Camp 8 Channel GSM Voip Terminal picture






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