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

BlackBerry Development Advisor
Posts: 15,759
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to get currently displayed phone number from phone app?

[ Edited ]

Only the creator of a thread (and moderators) sees the Solved buttons.


I've marked this one as solved for you.

Message Edited by MSohm on 08-13-2008 11:12 AM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Posts: 220
Registered: ‎09-09-2008
My Device: Bold 9780
My Carrier: Telstra AU

Re: How to get currently displayed phone number from phone app?

Hey all,


Can anyone confirm if this hack still works in 5.0 OS ?


I cant get this working on my Bold 9700 ......


Im casting the field to an editfield or ist that wrong ?



EditField editField = (EditField) UiApplication.getUiApplication().getActiveScreen().getFieldWithFocus();


Any help appreciated guys..



Follow me on twitter: twitter.com/paul.haenel

If your issue is resolved, please mark this thread as solved.

Set the "Solution" mark on the post which contains the answer to your question.