10-04-2012 02:14 AM - edited 10-04-2012 02:48 AM
Hi,
I want to show the please wait screen on my application I use the code
Dialog dlg = new Dialog("wait please...", new String[]{"OK"}, null, Dialog.OK,
Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS));
dlg.doModal();
but when i use this code that time ok button is display & when i click on this button the next process is start & it work ok as per my requirment
I just want to hide this button When I use it as followes that is time the screen become hange
Dialog dlg = new Dialog("wait please...",null, null, Dialog.OK,
Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS));
dlg.doModal();
when I pass the Dialog.OK as a 0 value that time also screen become hange
And after some time I want to load the another screen when i press ok button it get some time and the message is shown it ok
I don't want this ok button and click on it
my purpose is to develop this for the web service that time when it fetch some data from HTTP
Can any give the simple solution for this
Thanks
Solved! Go to Solution.
10-04-2012 02:40 AM
If you want to show only Please wait... without ok button then you can make a popup screen with lable Please wait.
10-04-2012 02:44 AM - edited 10-04-2012 02:45 AM
you can use this simple code for this.
public class PleaseWaitPopup extends PopupScreen
{
public PleaseWaitPopup()
{
super(new VerticalFieldManager(FIELD_HCENTER | FIELD_VCENTER), DEFAULT_CLOSE | DEFAULT_MENU);
add(new LabelField("Please wait ..."));
}
}