Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 86
Registered: ‎11-19-2008
My Device: Not Specified

Global events for phone calls

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?

Thanks

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Global events for phone calls

[ Edited ]

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.

Message Edited by tbilisoft on 12-12-2008 03:01 PM
New Developer
Posts: 86
Registered: ‎11-19-2008
My Device: Not Specified

Re: Global events for phone calls

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...

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Global events for phone calls

[ Edited ]

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.

 

Good luck :smileyhappy:

Message Edited by tbilisoft on 12-12-2008 03:14 PM
Developer
Posts: 16,637
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Global events for phone calls

you can accept a call using event injection before the phone starts ringing.
4.6 you can end an incoming call using the menu exploit (or event injection again) before the phone starts ringing.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 86
Registered: ‎11-19-2008
My Device: Not Specified

Re: Global events for phone calls

Hi Simon,

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 :smileysad:

That's why I want to experiment alternative solutions...

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Global events for phone calls

Have you tried the way I suggested ?

 

It should give you all global events when device receives a call.