03-25-2010 10:10 AM
How i get Hold key Press Event..I uesd KeyRepeat but it wont works.i want to implement speed dial in my application.so i want hold key press event so that i dial out the number that stored on that key location.
plz give some guideline how to implement speed dial in my application
03-25-2010 12:50 PM
I'm not sure exactly what you are trying to do or why keyRepeat doesn't do the job. But since it doesn't, you might try this: start a timer task on a keyDown notification and end the task on the corresponding keyUp. While active, the task would fire off a "speed dial" event every so often (say, ever 200 milliseconds). You might also need to work out special logic for handling multiple keyDown events in a row.
04-13-2010 04:45 AM
I presume you are using KeyListener. Have you proved this is working correctly? You should get keyUp and keyDown as well as keyRepeat. If you don't, then look at your implementation of KeyListener. If you want to look at a sample, the only sample that I am aware of that uses KeyListener is phoneapidemo.