×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    9

    How to set current display before calling Thread.sleep()?

    Hi.

    I need to do something like:

    display.setCurrent(new Form("Please Wait..."));

    // close bluetooth connection (code not present here)

    // make sure connection is closed before continuing
    try { Thread.sleep(5000); } catch (InterruptedException e) {}

    // continue

    However, the display doesn't update to the "Please Wait..." form with this code. Apparently, the Thread.sleep gets called before the display is updated and it prevents that from happening. How can I get the "Please Wait..." form to appear?

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: How to set current display before calling Thread.sleep()?

    Regarding implementing 'Please wait' screen, we had some discussions earlier. Please go through these links.
    http://agathonisi.erlm.siemens.de:80...ID=72912#72912
    http://discussion.forum.nokia.com/fo...highlight=wait
    http://forum.java.sun.com/thread.jsp...hreadID=481112

    Hope this helps!

    Regards
    Gopal

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  3. calling next file, problem on display()
    By lakshmanraob in forum Mobile Java General
    Replies: 0
    Last Post: 2005-10-01, 15:06
  4. How to set emulater property so that it will display transparent images transparant
    By vinay3dec in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-09-08, 09:41
  5. updating main display at set intervals?
    By diago in forum Mobile Java General
    Replies: 1
    Last Post: 2003-02-20, 04:32

Posting Permissions

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