12-12-2008 09:31 AM
I was told that it's possible to be notified about incoming calls through global events, instead that through a PhoneListener.
Is that right? I'd like to know...event if it's not the "official", "documented" and "endorsed" solution...
If that's possible, what is the eventID and where do I find it listed and described somehow?
12-12-2008 10:00 AM - edited 12-12-2008 10:01 AM
Undocumented things can be changed by RIM without notice.
And in this case your application is going to be just a set of bytes, not a problem solution, but a troublemaker.
I do not recommend to rely on undocumented things. It can give you and your customers more pain rather than benefits.
12-12-2008 10:03 AM
ok, I understand that...but besides that...can that be done? How? Is there a event GUID for incoming calls?
PhoneListener and callIncoming is no good, because it arrives when the phone is already ringing...
12-12-2008 10:10 AM - edited 12-12-2008 10:14 AM
I never heard about such GlobalEvents.
Try to create a global event listener and log all events which occur when you make a test call on your device.
And inspect closely every global event UID according to javadoc.
Pay more attention on unknown and not documented uids.
If there are global events when your blackberry gets an incoming call - this approach should work for you. It can be tested on simulator and on real device.
12-12-2008 10:48 AM
12-12-2008 10:52 AM
what you suggest works like a charm on all simulators I tried...however it *doesn't* work the same on the real device. On the real device the phone rings for almost a second before the call is ended
That's why I want to experiment alternative solutions...