12-22-2009 08:03 AM - edited 12-22-2009 11:06 AM
I have a background application that launches a MainScreen window and I need to be able to listen/catch menu key long press that lunches the switch application bar. Actually, if user in any way launches the switch application bar my MainScreen needs to know so it can close. How do I do that? An UIApllication can just listen for deactivate() calls, but MainScreen can't do that. I have implemented KeyListener already, but the long press event is not caught there.
Hmmm....is it only Storm that has the feture of launching the switch application via long press on menu key? Doen't work on Curve 8900.
I still can't catch the switch application event in a MainScreen window, anybody knows how?
Solved! Go to Solution.
12-22-2009 09:09 AM
KeyListerners keyRepeat() seems to catch the key event in the application that launches the MainScreen.
Problem seems to be solved then.
05-10-2010 07:47 PM
Hi, I'm a rookie for Blackberry programming.
I also have this problem on Storm.
I add the method "keyRepeat" in the code, but when I hold menu key for a while, switch bar appears but "keyRepeat" never called.
I used MIDLet and Canvas instead of rim libraries.
Please give me some advices. Thanks!
08-10-2010 04:04 AM
You have to implement RIM's keyListener class to catch events using keyRepeat(), I don't know how that works in MIDlet's.
04-05-2011 05:42 AM
I want to make an app that could be switched ON or OFF from its UI but it should run in the background and sence key pressed. When ever using my phone normally, a pattern of key press is detected say ALT + SHIFT, my app should run.
Can you help me in creating such app and implementing key press detection?
If the app is enabled from its UI it should detect the pattern and run.