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
Contributor
rreiss
Posts: 27
Registered: ‎01-21-2011
My Device: Bold 9900
Accepted Solution

Change callIncoming() more then one time while call incoming

[ Edited ]

Hey,

 

I'm working on app. that gets info. about the caller by it's number.

I have a slight problem that while cheking the info. about the caller the phone isn't showing the basic incoming call screen.

I want to present an incoming call screen with one extra label.

First the label's text will be 'Searching', and after I got the search result I want to change the label's text according to the info. I found.

I tried to use phoneScreenPortrait.updateDisplay(), but nothing happend.

 

This is my code:

>>Link to code 

 

Thanks,

Rotem

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Change callIncoming() more then one time while call incoming

as the incoming phone screen has the highest display priority you cannot replace it.
you can use the phonescreen api to add a field and display something:
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/phone/phonegui/PhoneScreen...
----------------------------------------------------------
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
Contributor
rreiss
Posts: 27
Registered: ‎01-21-2011
My Device: Bold 9900

Re: Change callIncoming() more then one time while call incoming

Hi,

 

I actually managed to update the incoming call screen using this 3 lines:

 

callerNameLbl.setFont(phoneScreen.getCallerInfoFont());
phoneScreen.add(callerNameLbl);
screenModel.sendAllDataToScreen();

:smileyhappy:

 

Thanks,

Rotem