Discussion Board

Results 1 to 2 of 2

Thread: loading screen

  1. #1
    Registered User
    Join Date
    Oct 2008

    loading screen

    In the following function, getFormZender() takes 5 seconds to calculate. In the mean time I try to show a loading screen.
    It works but the loading screen comes AFTER the getFormZender() function is executed.
    It seems like switchDisplayable() is not fast enough and the rest of the code is executed first.

    Does somebody know how to do this better?

      public void ZendersAction() {
            // enter pre-action user code here
            String __selectedString = getZenders().getString(getZenders().getSelectedIndex());
    	Gauge _gauge = new Gauge( null, false,
                                Gauge.CONTINUOUS_RUNNING );
            Alert _alert = new Alert( null );
            _alert.setString( "Bezig met laden..." );
            _alert.setIndicator( _gauge );
            _alert.setTimeout( 10000 );
            FormZender = null;
            FormZender = getFormZender();

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007

    Re: loading screen

    Hello twtb,

    how about this article on Forum Nokia Wiki?:

    Series 40: Considerations regarding MIDlet startup and runtime execution

    Basically the article is about startup but it could apply here as well as for designing the application to perform tasks in separate threads.

    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. Refresh whole screen
    By Lord Ryj in forum Mobile Java General
    Replies: 8
    Last Post: 2009-11-14, 12:48
  2. Splash Screen loading problem
    By Mozart2007 in forum Symbian
    Replies: 4
    Last Post: 2009-09-23, 08:59
  3. Shows splash screen when loading.
    By fishman8 in forum Symbian User Interface
    Replies: 7
    Last Post: 2008-04-04, 19:17
  4. How to show loading screen before game start??
    By icq98hk in forum Mobile Java General
    Replies: 2
    Last Post: 2003-07-08, 09:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts