×

Discussion Board

Results 1 to 3 of 3

Thread: Alert confusion

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    22

    Alert confusion

    Hi,

    I want to display an alert to the user that shows a continues progress bar (gauge). My test case is that a http connection is made, some data is downloaded and then displayed to the user. While the download is in progress, the alert should show the user that there is progress.

    So far I have found out that I can't use a continues bar, since the user must dismiss it. If the user dismiss it immediately, I can't show the next screen because it hasn't been populated yet with data - it might still be coming from the server. So I decided to use a time-out of 2 seconds, check if a data downloaded flag has been set, and if so let the alert run out, otherwise re-instate it with another 2 seconds times X until the data arrived. (Maybe not the best way to do it..)

    My biggest problem is, as you can see with the code below, if I have a wait for flag - data must be available and populated to the list screen, everything just HANGS until I have downloaded the data and populate it. Somehow it seems impossible to tell the alert, please run and entertain the user, until all the data has been downloaded, and THEN you may exit. What seems to happen is that both the alert and list screen must finish before the alert is shown? I am baffled, because I populate the list only after I got data - so basically I told the list to wait for data then go display. Nothing tells the alert to wait too, it should display two separate things! The alert should not be depending on if the list is populated or not..

    If you can suggest something that I might try, I will be eternally thankful!


    case 5:
    // Insert pre-action code here
    getDisplay().setCurrent(get_alert1(), get_list1());
    //Insert post-action code here
    break;
    case 6:

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Smile Re: Alert confusion

    System.getProperty("microedition.platform"); //Returns brand and model
    System.getProperty("microedition.profiles"); //returns the MIDP version
    System.getProperty("microedition.configuration"); // returns de CLDC version


    Normally it works alltough is not mandatory for the implementation (manufacturer)

  3. #3
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: Alert confusion

    Quote Originally Posted by Peanuts1971
    Hi,

    I want to display an alert to the user that shows a continues progress bar (gauge). My test case is that a http connection is made, some data is downloaded and then displayed to the user. While the download is in progress, the alert should show the user that there is progress.

    So far I have found out that I can't use a continues bar, since the user must dismiss it. If the user dismiss it immediately, I can't show the next screen because it hasn't been populated yet with data - it might still be coming from the server. So I decided to use a time-out of 2 seconds, check if a data downloaded flag has been set, and if so let the alert run out, otherwise re-instate it with another 2 seconds times X until the data arrived. (Maybe not the best way to do it..)

    My biggest problem is, as you can see with the code below, if I have a wait for flag - data must be available and populated to the list screen, everything just HANGS until I have downloaded the data and populate it. Somehow it seems impossible to tell the alert, please run and entertain the user, until all the data has been downloaded, and THEN you may exit. What seems to happen is that both the alert and list screen must finish before the alert is shown? I am baffled, because I populate the list only after I got data - so basically I told the list to wait for data then go display. Nothing tells the alert to wait too, it should display two separate things! The alert should not be depending on if the list is populated or not..

    If you can suggest something that I might try, I will be eternally thankful!


    case 5:
    // Insert pre-action code here
    getDisplay().setCurrent(get_alert1(), get_list1());
    //Insert post-action code here
    break;
    case 6:
    What I suggest is to use a Please wait animation with a progress bar. So that we can give hint to the user that some back ground process is going on and needs time for it to successfully complete.
    We already had a discussion earlier on handling the Please Wait (waiting screen) animation,
    http://discussion.forum.nokia.com/fo...64&postcount=2
    May be of some help to you

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

Similar Threads

  1. Bug in Commands of an Alert
    By matrix1982 in forum Mobile Java General
    Replies: 5
    Last Post: 2007-05-19, 01:39
  2. Alert not displaying
    By dhanyap in forum Mobile Java General
    Replies: 2
    Last Post: 2006-11-20, 16:45
  3. doubt regarding alert codes
    By swroop in forum OMA DM/DS/CP
    Replies: 5
    Last Post: 2006-08-10, 10:16
  4. Displaying Alert in MIDP1
    By anand_amarsh in forum Mobile Java General
    Replies: 2
    Last Post: 2004-12-28, 07:08
  5. 6600 & instantiating Alert dialogs from within Timer's thread context
    By random_john_doe in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-15, 17:20

Posting Permissions

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