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

Testing and Deployment

Reply
Developer
Posts: 237
Registered: ‎07-20-2010
My Device: Not Specified

how to: delay an app from loading on my simulator until after simulator is ready

How do i  delay an app from loading on my simulator until after simulator is ready so I don't get a pile of bugus exceptions relating to  the simulator not being ready yet.

 

Thanks

Developer
Posts: 237
Registered: ‎07-20-2010
My Device: Not Specified

Re: how to: delay an app from loading on my simulator until after simulator is ready

So far I have had some success by just putting this line

Thread.sleep(1000*30);//pause to let the simulator load first

at the top of my main(String[] args) method,

it seems to avoid some starup issues and I think the simulator starts up faster this way.  But I'm sure I saw something else on these forums about a built in function detecting whether or not the simulator has finished loading.