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

Java Development

Reply
Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

How to invoke my application on Key Press

[ Edited ]

i am trying to develop a application in which when i get a incoming call,on pressing end button,call gets disconnected and after that  ,i want to invoke my application,How do it?

 

Regards

 

Rakesh Shankar.P

Developer
Posts: 32
Registered: ‎07-31-2009
My Device: Not Specified

Re: How to invoke my application on Key Press

With a KeyListener.  Catch the presses in keyUp.

Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Re: How to invoke my application on Key Press

[ Edited ]

Whenever i press the end key,my application will be invoked ,Is it So?

 

But i want the application to be invoked only on time of call arrival?

 

can i know what for notication managers are used and is there any relevant to my search?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to invoke my application on Key Press

I am not aware of a way of doing this using a keyListener.

 

Most people do this sort of processing using a PhoneListener.  Review that class and its associated classes for further information.

 

Not that this is NOT a trivial thing to do, and to do this properly requires that you context shift into your own application (I recommend global events).  There have been many Threads on this forum about problems capturing phone call information.  Please take the time to review the Threads on this forum before you start this development.