×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    Alert with Gauge while reading data from web J2ME

    Hi i want to fetch data from web in j2me... for that there is alert with Gauge is displaying while loading data it should gone when data is loaded from internet not before that but in my case before data come the Alert with Gauge is gone

    for display Alert with gauge i have written below code

    Alert loading = new Alert("Please Wait...", "Data is loading from server...", null, null);
    loading.setIndicator(new Gauge(null, false, Gauge.INDEFINITE, Gauge.CONTINUOUS_RUNNING));
    javax.microedition.lcdui.Display.getDisplay(AfrikaansMidlet.this).setCurrent(loading);
    loadContacts();

    In loadContact() there is one thread which is getting some data from internet after data is getting i will call below function to load list of data which is already fetched


    loadContacts() {
    Display.getDisplay(AfrikaansMidlet.this).setCurrent(list);
    }

    but my problem is before data come or you can say before LIST is dispyaing the Alert with Gauge is gone

    can any body solve this problem
    Amit

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    685

    Re: Alert with Gauge while reading data from web J2ME

    Well based on your own code you change the current Displayable to the list right after you set it to the loading alert so of course this will happen...
    you should set the current displayable to the list only after your data is retrieved in the thread that gets it from the network.

Similar Threads

  1. Alert Gauge in HttpConnection.
    By kumar1234567 in forum Mobile Java General
    Replies: 2
    Last Post: 2011-04-07, 10:05
  2. Alert with Gauge does not display
    By javadude in forum Mobile Java General
    Replies: 6
    Last Post: 2011-01-28, 09:59
  3. What is The Alert Gauge??
    By buffon2009 in forum Mobile Java General
    Replies: 1
    Last Post: 2011-01-19, 23:02
  4. Not able to set Gauge on Alert
    By sandeep.gadhvi1185 in forum Mobile Java General
    Replies: 2
    Last Post: 2008-07-22, 14:30
  5. Proble with a gauge into an Alert
    By zidia in forum Mobile Java General
    Replies: 1
    Last Post: 2007-11-19, 15:23

Posting Permissions

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