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
Posts: 16
Registered: ‎10-07-2010
My Device: Not Specified
Accepted Solution

Blackberry IllegalStateException error using TimerTask

Hello,

 

I have a splash screen that implements MainScreen, and I am trying to use Timer to wait 3 seconds to push a new screen.

 

 

TimerTask splashTask = new TimerTask() {
        public void run() {
            UiApplication.getUiApplication().pushScreen(new HomeNavigationScreen());
        }
    };

    timer.schedule(splashTask, 3000);

 

However, it throws IllegalStateException error, I am not sure what I am doing wrong?

 

Highlighted
Developer
Posts: 374
Registered: ‎04-07-2010
My Device: Bold 9000
My Carrier: Airtel

Re: Blackberry IllegalStateException error using TimerTask

Check This... 

 

http://supportforums.blackberry.com/t5/Java-Development/loading-screen/td-p/556826

 

Its the same Problem I guess

Press the Like button (Thumb up) on the left side to thank and
please mark the Thread as solved if its solved...
K.S