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
New Developer
ganeshS
Posts: 133
Registered: ‎12-31-2009
My Device: Not Specified

How to access CALL KEY and END KEY (Green key and End key )

Hello Friends,

 

I have two questions

 

Question 1.

I want to access Green key and End key in MIDLET (for Blackberry ) how can I achieve this? I am getting other keys ( from a to z ) in "keyPressed" method. But I am not able to get CALL KEY  and END KEY (Green key and End key ).

 

Question 2.

 

 I want to change opacity of an image programatically How can I achieve this?

 

 

 

Thank you

 

 

 

 

 

 

 

 

Please use plain text.
Developer
Adama
Posts: 77
Registered: ‎01-27-2010
My Device: Bold 9000
My Carrier: AT&T

Re: How to access CALL KEY and END KEY (Green key and End key )

[ Edited ]

For the first question I don't think you'll be able to do this.  In the BlackBerry specific APIs you could ordinarily use EventInjector.KeyCodeEvent to insert a key press.  However, according to Mark Sohm this will not work on a real device so I'm certain there's no way to do it from a Midlet either.

 

Edit: Sorry, I was thinking that you wanted to insert a key but looking at that post now it looks like you just want to set up a KeyListener.  My guess is that RIM will not be able to let you get this because you could override the default behavior.

Please use plain text.