07-13-2011 12:10 PM
Solved! Go to Solution.
07-13-2011 04:03 PM
"You can probably satisfy your requriement by using PhoneListener and blocking calls with key event injection."
Yes, that's exactly how you have to do it.
When the phone listener receives the incoming call event, you inject the KEY_END key (down and up).
But there's a catch: You have to do this in a separate thread, and you have to sleep about 100ms when you received the callIncoming event before injecting the key events, otherwise it won't work.
look at net.rim.device.api.system.EventInjector and net.rim.blackberry.api.phone.PhoneListener