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
Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

callInitiated not called on 4.6

Following various bug reports i have discovered that callInitiated is called only once (for the first time) and never thereafter.

All other methods of the call listener perform fine and are called reliably.

 

Tested OS are 4.6.0.291 and 4.6.0.219

 

Rebooting the phone allows the listener callInitiated to be called once again, but it will not work the second time.

 

All other tested OS (4.2.1, 4.5, 4.6.1, 5.0) do not show this behavior.

 

----------------------------------------------------------
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
Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: callInitiated not called on 4.6

I have found a workaround for this:

 

In callDisconnected i call

Phone.removePhoneListener(this);
Phone.addPhoneListener(this);

 

I feel dirty now, but at least it works.

----------------------------------------------------------
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
Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: callInitiated not called on 4.6

Not working on 4.6.0.165 on a 8220 pearl flip. callInitiated is never called.

 

I am looking for global events that indicate the call initiated.

On the 8220 it seems to be GUID 5961289116197897667

On a 4.5 device it was GUID -3502867315182341540

 

I wonder if the guid is changed, my hope was to have found a workaround. anybody has a clue?

----------------------------------------------------------
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
Developer
Posts: 92
Registered: ‎06-02-2009
My Device: Rogers Curve 8900
My Carrier: Rogers

Re: callInitiated not called on 4.6

I just wanted to say that GUID 59612289116197897667L seems to be happening for me when nothing to do with the Phone is going on. It seems to be something to do with the UI... object0 is an XYRect and object1 is an Integer. It's being fired when native dialogs are popped up.

Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: callInitiated not called on 4.6

thanks for the update, matches my own observation.

the initiation of a call triggers the element, maybe because the phone app goes to the foreground.

i use it with the check of an active call.

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