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
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
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
Originally Posted by juarezjunior
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 ..???
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
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 >>Originally Posted by balagopalks
i'll check it
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
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
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
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 ..?????