06-09-2009 07:15 AM
I want to develop an application in which suppose I keep pressing the '#' key for 5 seconds, then it should be display the messege "Hello" on the console. This task I have to do without running my application.
Also the requirement is that I am not allowed to auto start the application. So whenevr the BB simulator is initialized at that time if i press the key then the messege should be displayed.
How can i achieve this?..
06-09-2009 07:20 AM
06-09-2009 07:37 AM
Thanks for the reply. But if I start auto-start the application, then is there any way to do so?
I mean we make an application which is running in backgroung while BB simulator is initilized. So is it possible by pressing key up to some time interval & get the messege on the console?..
06-09-2009 07:54 AM
06-09-2009 08:14 AM
Thanks a lots Simon,
Then is it possible to generate event on # key press anyway? I mean if we run our code then after it is possible to press the key for particular time interval & display the messege?
Sorry for bunch of questions.
06-09-2009 08:48 AM - edited 06-10-2009 02:12 AM
I agree with simon.. However a foreground application can get all the key presses..
I'm not aware of finding a long keypress and a short one.. key up and key down events are there
06-09-2009 08:57 AM
06-10-2009 02:06 AM
Thanks for your interaction. I found the solution of my problem as an application running in foreground. I just implemented KeyListener & all its methods for that.