Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 43
Registered: ‎11-24-2011
My Device: Perl
My Carrier: BB
Accepted Solution

want to show please wait screen

[ Edited ]

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 

 

Highlighted
Developer
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: want to show please wait screen

If you want to show only Please wait... without ok button then you can make a popup screen with lable Please wait.

Developer
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: want to show please wait screen

[ Edited ]

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 ...")); }
}