×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    progress alert ?

    hi there people ..???

    am wandering how can i show an alert .. progress alert sth like that until the a task is functioning ..???
    sth like when u send a msg .. u have a waiting alert untill the msg is sent ..

    thanx

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: progress alert ?

    Hi dakoz,

    I'm not sure if i understood your question but if you'd like to use Alerts and Gauges, take a look at the tech tip below:

    Alerts in MIDP 2.0
    http://developers.sun.com/techtopics...s20/index.html

    Hope it helps!

    BR,

    Juarez Junior

  3. #3
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    Re: progress alert ?

    Quote Originally Posted by juarezjunior
    Hi dakoz,

    I'm not sure if i understood your question but if you'd like to use Alerts and Gauges, take a look at the tech tip below:

    Alerts in MIDP 2.0
    http://developers.sun.com/techtopics...s20/index.html

    Hope it helps!

    BR,

    Juarez Junior

    am so sorry for not being clear ..
    am working in a project in which some functions needs time to be finish .. like .. uploading data from the internet .. accesing mobile address book ... i mean i want an alert to stay displayed sth like " please wait until this procedure is finished ..???

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: progress alert ?

    Hi dakoz,

    You can control it yourself, just develop right control logic for that using alerts and/or gauges...there's no secret

    BR,

    Juarez Jr

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

    Re: progress alert ?

    dakoz,
    I guess you are talking about some please wait screen with progress bar. I had a similar discussion earlier in this regard. Please check this link for a detailed discussion http://agathonisi.erlm.siemens.de:80...ID=72912#72912

    Hope this helps!

    Regards
    Gopal

  6. #6
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    Re: progress alert ?

    Quote Originally Posted by balagopalks
    dakoz,
    I guess you are talking about some please wait screen with progress bar. I had a similar discussion earlier in this regard. Please check this link for a detailed discussion http://agathonisi.erlm.siemens.de:80...ID=72912#72912

    Hope this helps!

    Regards
    Gopal
    thanxfor the tip >> i'll check it

  7. #7
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    Re: progress alert ?

    i don't know what am doing wrong ..???

    am using an implacit list in which is fill froma string recieved from an httpconnection ...
    now when i set an alert to be displayed... it simply doesn't

    here is a sample of my code...


    Code:
    //show alert of l\please wait
                Alert alert = new Alert("AylaGuide");
                alert.setTimeout(Alert.FOREVER);
                alert.setString("\n Please Wait\n Loading data ...");
                alert.addCommand(exitCommand);
                display.setCurrent(alert);
                //Get selected item from list " service"
                int g=menuList.getSelectedIndex();
                Service =menuItem[g];
                menuList.deleteAll();
                //ganerate the needed Url to get data        
                TService= menuItem_id[g];
                String TempUrl;
                TempUrl=Aurl2+menuItem_id[g];
                //http get command with the generated Url
                String st;
                try
                {
                    st = requestUsingGET(TempUrl);
                }
                catch(IOException e)
                {
                    st= "No Data Found,Try Later,";
                }
                // parseing string recived

  8. #8
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: progress alert ?

    Hi dakoz,

    R u calling another display.setCurrent() of the menulist/another displayable soon after this code.
    According to midp api specs :-
    Calls to setCurrent() are not queued. A delayed request made by a setCurrent() call may be superseded by a subsequent call to setCurrent(). For example, if screen S1 is current, then


    d.setCurrent(S2);
    d.setCurrent(S3);

    may eventually result in S3 being made current, bypassing S2 entirely.

    Hope it is of some help to u.

    Wang

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

    Re: progress alert ?

    Please check what is the current display, if you still have some trouble please post the full code so that we could check it out.

    Regards
    Gopal

  10. #10
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    Re: progress alert ?

    yes after i get the string from the http connection .... i parse it and put it in the list and then i set the current display to the list ...??????
    this seems i can't show an alert than ..?????

Similar Threads

  1. Replies: 5
    Last Post: 2007-09-19, 10:09
  2. The Alert turn off when keypressed
    By lekboon in forum Mobile Java General
    Replies: 0
    Last Post: 2004-10-20, 06:01
  3. Progress Bar - How to calculate the time?
    By ashbhatia in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-05-28, 12:18
  4. 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
  5. Displaying an Alert on a J2ME device
    By cj901 in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-25, 03:18

Posting Permissions

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