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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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 Smiley Happy

Message Edited by tbilisoft on 12-12-2008 03:14 PM
Developer
Posts: 17,025
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 Smiley Sad

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.