Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® Bold™

Reply
New Developer
Aniruddha
Posts: 60
Registered: ‎09-23-2011
My Device: Blackberry
My Carrier: Blackberry Developer

How to Disconnect dialed call after some time automaticale?

Hello ,

 

I have required to dissconnect call automatically?

Without using any key?

Please need help.

 

Thanks!!

Regards,

Ani

Please use plain text.
Contributor
hrushikeshsalkade
Posts: 17
Registered: ‎12-20-2011
My Device: Bold 9780
My Carrier: Vodafone

Re: How to Disconnect dialed call after some time automaticale?

public void disconnect()

{


          EventInjector.KeyCodeEvent pressEndKey = new EventInjector.KeyCodeEvent( KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, 0);
         EventInjector.KeyCodeEvent releaseEndKey = new EventInjector.KeyCodeEvent( KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, 0);

         EventInjector.invokeEvent(pressEndKey);  
         EventInjector.invokeEvent(releaseEndKey);
}

Please use plain text.