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
Regular Contributor
salmankhan7788
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
Accepted Solution

How to add KeyListener in MainScreen

Hi

 I have tried to add  keyListener interface in my class which extends MainScreen, but when i implement this the class show error.

KeyListener easily works with normal class or a class that extends UiApplication.

How could i implements this ...!

 

Thanks is advance.

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to add KeyListener in MainScreen

MainScreen already implements KeyListener, you can just overwrite the method you need.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
salmankhan7788
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900

Re: How to add KeyListener in MainScreen

Thanks a lot Mr. Simon_hain

 your solution works good..!