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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
omri
Posts: 74
Registered: ‎07-17-2008

Re: Use of undocumented API's on the Blackberry

Is there some kind of way to run this after the screen is build?

 

invokeLater?

The undocumented method does work in the screen constactor. 

Please use plain text.
Administrator
MSohm
Posts: 13,066
Registered: ‎07-09-2008
My Carrier: Bell

Re: Use of undocumented API's on the Blackberry

If you want this code to reside within your screen class, you could place it within the onExposed method that runs when your screen becomes visible.  You could add some logic in there to ensure that it only runs once since this method can be called multiple times (when a screen is displayed, when a menu or dialog is dismissed from on top of it, etc...).
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
omri
Posts: 74
Registered: ‎07-17-2008

Re: Use of undocumented API's on the Blackberry

That did the job!

Thanks Mark.

 

 

Please use plain text.