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
omri
Posts: 74
Registered: ‎07-17-2008
My Device: Not Specified

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. 

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
omri
Posts: 74
Registered: ‎07-17-2008
My Device: Not Specified

Re: Use of undocumented API's on the Blackberry

That did the job!

Thanks Mark.