Display a POPUp screen

Hi all

I want to display the popup with content of string for 2 to 5 dry can help them all one on this...

The pop-up screen should last to notice either thank you 5 sec...

Please help me how can I do this

Concerning

Adkins

Doing a job? Is that what you wanted... If you please mark the post as solved.

Tags: BlackBerry Developers

Similar Questions

  • How do I display a popup screen bit so a user confirms?

    I have a small bar on the bottom of my application with a backup and a Cancel button. I want the user to confirm when he chooses to cancel as in "are you sure you want to exit the changes will not be saved." type of popup.

    How can I achieve this in Blackberry? Thanks for the help guys!

    If (Dialog.ask (Dialog.D_YES_NO, "DO YOU WANT TO SAVE THIS RECORD?")) Is Dialog.YES)

    {

    APPLY THE CODE OF THE HEART

    }

  • Transparent display of Popup in Blackberry

    Hello

    I found a work around for a transparent popup on any blackberry screen. I would like to share my code here.

    The PopupScreen class is as follows:

    /*******************************************************************************************************/

    Import net.rim.device.api.system.GIFEncodedImage;
    Import net.rim.device.api.ui.Color;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.Font;
    Import net.rim.device.api.ui.Keypad;
    Import net.rim.device.api.ui.XYEdges;
    Import net.rim.device.api.ui.component.LabelField;
    Import net.rim.device.api.ui.container.PopupScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.ui.decor.Background;
    Import net.rim.device.api.ui.decor.BackgroundFactory;
    Import net.rim.device.api.ui.decor.Border;
    Import net.rim.device.api.ui.decor.BorderFactory;

    SerializableAttribute public class PopupLoadingScreen extends PopupScreen {}

    Font fntPlain = Font.getDefault () .derive (Font.PLAIN, 20);
    private AnimatedGIFField anmtFldCycle = null;
    private LabelField lblMessage = null;
    Private GIFEncodedImage gifImgCycle;

    public PopupLoadingScreen (String text) {}

    Super (new VerticalFieldManager (VerticalFieldManager.VERTICAL_SCROLL
    | VerticalFieldManager.VERTICAL_SCROLLBAR));

    Background bg = BackgroundFactory.createSolidTransparentBackground)
    Color.WHITE, 0);
    this.setBackground (bg);

    Border = BorderFactory.createRoundedBorder (new XYEdges(),
    Border.STYLE_TRANSPARENT);
    this.setBorder (border);

    gifImgCycle = GIFEncodedImage (GIFEncodedImage)
    .getEncodedImageResource("LoadingSpinner.gif");// greenloadingspinner.gif
    anmtFldCycle = new AnimatedGIFField (gifImgCycle, Field.FIELD_HCENTER);
    Add (anmtFldCycle);

    lblMessage = new LabelField (text, Field.FIELD_HCENTER);
    lblMessage.setFont (Font.getDefault () .derive (Font.PLAIN, 20));
    Add (lblMessage);

    }

    / / This will overwrite the DOS on a button on the PHONE
    {} public boolean keyDown (keycode, int, int status)

    If (Keypad.key (keycode) == Keypad.KEY_ESCAPE) {}
    Returns true;
    }
    Return super.keyDown (keycode, status);
    }

    /**
    * This replaces the closing functionality in the default BB menu any
    * screen
    */
    public boolean onClose() {}
    UiApplication.getUiApplication () .requestBackground ();
    Returns false;
    }
    }

    / * GIF ANIME FIELD class * /.

    package com.test;

    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.system.GIFEncodedImage;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.component.BitmapField;

    A field that displays an animated GIF image.

    SerializableAttribute public class AnimatedGIFField extends BitmapField {}
    private GIFEncodedImage _image; The image to draw.
    private int _currentFrame; The current image of the animation sequence.
    Private AnimatorThread _animatorThread;

    public AnimatedGIFField (image GIFEncodedImage) {}
    This (image, 0);
    }

    public AnimatedGIFField (picture of GIFEncodedImage, long style) {}
    Call great to set up the field with the specified style.
    The image went as well for the domain configure sound
    required size.
    Super (image.getBitmap (), style);

    Store the image.
    _image = image;

    Start the animation thread.
    _animatorThread = new AnimatorThread (this);
    _animatorThread.start ();
    }

    protected void paint (Graphics graphics) {}
    Call the super.paint. This will draw the first background image and
    manage all necessary development of drawing.
    Super.Paint (Graphics);

    Do not redraw the background if it comes to the first image.
    If (_currentFrame! = 0) {}
    Draw the image animation.
    Graphics
    .drawImage (_image.getFrameLeft (_currentFrame), _image
    .getFrameTop (_currentFrame), _image
    .getFrameWidth (_currentFrame), _image
    .getFrameHeight (_currentFrame), _image,
    _currentFrame, 0, 0);
    }
    }

    Stop the animation thread when the screen is the field is
    depile display.
    protected void onUndisplay() {}
    _animatorThread.stop ();
    super.onUndisplay ();
    }

    A thread to handle the animation.
    private class AnimatorThread extends Thread {}
    Private AnimatedGIFField _theField;
    Private boolean _keepGoing = true;
    private int _totalFrames. The total number of images in the image.
    private int _loopCount; The number of times that the loop animation
    (completed).
    private int _totalLoops; The number of times that that animation should

    loop (defined in the image).

    public AnimatorThread (AnimatedGIFField region) {}
    _theField = theDomain;
    _totalFrames = _image.getFrameCount ();
    _totalLoops = _image.getIterations ();

    }

    public synchronized void stop() {}
    _keepGoing = false;
    }

    public void run() {}
    so that {(_keepGoing)
    Invalidate the field so that it is redrawn.
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    _theField.Invalidate ();
    }
    });

    try {}
    Sleep during the framework period currently before the next image
    is drawn.
    Sleep (_image.getFrameDelay (_currentFrame) * 10);
    } catch (InterruptedException iex) {}
    } / / Could not sleep.

    Increment the frame.
    ++ _currentFrame;

    If (_currentFrame, _totalFrames)) {}
    Reset to 0 if we've reached the end.
    _currentFrame = 0;

    ++ _loopCount;

    Check whether the animation should continue.
    If (_loopCount == _totalLoops) {}
    _keepGoing = false;
    }
    }
    }
    }
    }
    }

    /*******************************************************************************************************/

    That's how I put the bottom of my main class where I show the Popup screen

    Background bg = BackgroundFactory.createSolidTransparentBackground)
    Color.WHEAT, 0);
    getMainManager () .setBackground (bg);

    For the popup and the class screen I put the background color as Color.WHITE, and the GlobalAlpha is set to '0 '.

    I press the PopupScreen class at the simple button click. In fact, it's a screen of loading with a GIF image in it. The link to the GIF images is given below

    http://www.Google.co.in/imgres?q=loading+spinner&hl=en&SA=X&BIW=1366&BiH=588&TBM=isch&PRMD=imvns&TBN...

    You can also try with another image GIF.

    Please suggest if changes or improvements are possible in this for best performance

    Thank you.

    I had added this complete code so that someone can be useful in development. Thanks anyway.

    Good day

  • Close popup screen programmatically

    I have a popup screen that I displayed to inform the user that they are wating on entry. When I try to close it in my earpiece method it gives the error:

    IllegalStateException - UiEngineImpl.assertHaveEventLock)

    I push the pop-up screen on the stack using a runnable.invokeAndWait and push as a ModalScreen because otherwise it will not show.

    What is the error of assertHaveEventLock for, and why the window display not using invokeLater and pushScreen?

    The IllegalStateException is thrown because the thread that calls the close method (the listener) is not the thread main event.  Calling the method close must occur in a block, as described on the next page.

    How - to upgrade a screen on the main event Thread
    Article number: DB-00136

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

  • How popup screen description on html?

    Location:

    After document. Write(), the application is stopped.

    Question:

    How popup screen description on html?

    You know that the following code is incorrect or other issues?

    Purpose:

    Display content on the screen.

    Minmum coding: (three methods are good to try, but fail)

    Method1

    function help() {}
    var myWindow = window.open (", 'Help', 'width = 600, height = 200');

    ...........stop here..........................
    myWindow.document.write(")

    To start

    ");
    myWindow.focus ();

    Methode2
    popup var = window.open (", 'Help', 'width = 600, height = 200');

    ...........stop here..........................
    var doc = popup.document;

    doc. Write(")

    To start

    ");
    }
    Method 3
    function help (id) {}

    var content = document.getElementById (id) .innerHTML;

    var generator = window.open (", 'name', 'height = 600, width = 200');

    ...........stop here..........................
    Generator.document.Write (')Popup');

    Generator.document.Write (')');

    Generator.document.Write (')

    This page

    ');

    Generator.document.writeln (content);

    Generator.document.Write (')');

    Generator.document.Close ();

    }

    If you know how to solve the problem, please let us know your suggestion or solution.

    Fight with the Playbook.

    Never (never never) use document.write. It can cause much more harm and confusion than good.

    If you want to display a dialog box that is customized with the text inside, the simplest is to use jQuery Mobile:

    http://jquerymobile.com/Demos/1.2.0-Beta.1/docs/pages/page-dialogs.html

    Otherwise, you can create your own by using a

    element with some custom CSS, like this

    HTML:

    this is my description

    CSS:

    .dialog {
       max-width: 30em;
       border: solid 0.25em black;
       background-color: #ddd;
       padding: 1em;
       display: inline;
       position: relative;
       left: 10em;
       top: 3em;
    }
    
  • Conditional call forwarding and popup screen.

    Hi all

    I push a pop-up screen to cover a call out with my own information. However on my device and several others, a pesky "conditional call forwarding" popup is displayed by the phone which briefly takes precedence over my popup screen. Is this anyway to prevent this.

    I push the screen by using the following code.

    UiApplication.getUiApplication().pushGlobalScreen(activeOutDialScreen, 0,UiEngine.GLOBAL_SHOW_LOWER) ;
    

    I tried setting the summary field on a few different things, but nothing can stop the pop-up conditional reference poster.

    Any help or just confirming, that it is not possible would be greatly appreciated.

    Kind regards

    Alan

    None

  • Popup screen problems

    I've tried using the search tool and google my whole day, but I can't seem to find the answer to these two problems.

    1. I'm positioning my pop-up screen in the middle of the screen. But as you can see in the image below it is nowhere near the Center.

    2. I'm trying to focus my two buttons in the middle of the popup screen with a verticalfieldmanager, but somehow it is fondant a position according to the width, I don't know what.

    Here is the code:

    private final static int _Width = 200;private final static int _Height = 200;private final static int _X = (Display.getWidth() - _Width) >> 1;private final static int _Y = (Display.getHeight() - _Height) >> 1;public class NetworkSettingScreen extends PopupScreen{
    
    public NetworkSettingScreen(){   super( new VerticalFieldManager());   LabelField lf = new LabelField("Network Settings", DrawStyle.HCENTER);    SeparatorField sf = new SeparatorField();         CheckboxField cbf1 = new CheckboxField(" WiFi", true);    CheckboxField cbf2 = new CheckboxField(" GPRS/Edge/3G", true);
    
      VerticalFieldManager vfm = new VerticalFieldManager(HorizontalFieldManager.FIELD_HCENTER);    ButtonField bf1 = new ButtonField("Save", DrawStyle.HCENTER); ButtonField bf2 = new ButtonField("Cancel", DrawStyle.HCENTER);   vfm.add(bf1); vfm.add(bf2);
    
      //add UI components to Pop-up screen  add(lf);  add(sf);  add(cbf1);    add(cbf2);    add(vfm);}
    
    public void sublayout(int width, int height){   super.sublayout(width, height);   setExtent(_Width, _Height);           setPosition(_X, _Y);}}//end of class
    

    http://i55.Photobucket.com/albums/G152/chengbang69/screenshot.jpg

    any help would be appreciated

    Hey chengbang69,

    I modified your code to obtain the expected results,

    final class NetworkSettingScreen extends PopupScreen
    {
        private final static int _Width = 200;
        private final static int _Height = 200;
        private final static int _X = (Display.getWidth() - _Width) >> 1;
        private final static int _Y = (Display.getHeight() - _Height) >> 1;
    
    public NetworkSettingScreen()
    {
        super( new VerticalFieldManager());
        LabelField lf = new LabelField("Network Settings", LabelField.FIELD_HCENTER);
        SeparatorField sf = new SeparatorField();
        CheckboxField cbf1 = new CheckboxField(" WiFi", true);
        CheckboxField cbf2 = new CheckboxField(" GPRS/Edge/3G", true);
    
        VerticalFieldManager vfm = new VerticalFieldManager(VerticalFieldManager.FIELD_HCENTER);
        ButtonField bf1 = new ButtonField("Save", ButtonField.FIELD_HCENTER);
        ButtonField bf2 = new ButtonField("Cancel", ButtonField.FIELD_HCENTER);
        vfm.add(bf1);
        vfm.add(bf2);
    
        //add UI components to Pop-up screen
        add(lf);
        add(sf);
        add(cbf1);
        add(cbf2);
        add(vfm);
    }
    public int getPreferredWidth() {
        return _Width;
    }
    public int getPreferredHeight() {
        return _Height;
    }
    
    public void sublayout(int width, int height)
    {
        super.sublayout(getPreferredWidth(), Integer.MAX_VALUE);
        setExtent(getPreferredWidth(), getPreferredHeight());
        setPosition(_X, _Y);
    }
    }//end of class
    

    The reason why you need to replace getPreferredHeight() and getPreferredWidth() is due to all subcalls and sublayouts which actually occur when you call super.sublayout. It will then use the 'default' screen page or getPreferredWidth/height.

    Just a friendly recommendation, adjusting the size of a screen to a static value is effective only if you also check the size of the font, currently if the user has a font above average size, a part of the text will not be seen, so, technically, the most effective way is to have the JAVA virtual machine to manage the resizing/flaking itself This can be done by simply using the same code that I posted above, however remove the substitution on sublayout, the width will be slightly larger that you set but at least you won't encounter unknowns.

    Hope this helps,

    Concerning

    André

  • my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    Hello

    Follow the instructions here:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • Switching the external display to MBP screen retina, poor quality, need to restart FF19.0.2

    Here is the chronology of the events:

    (1) FF start on my MBP (OS 10.8.2) and the retina display working properly.

    (2) connect my MBP to a 24 "external display which has a resolution of 1920 x 1200 (defined as primary) max. FF displays well on screen.

    (3) disconnect the external display and FF is now pixel on retina MBP. Updating of system preferences Dispay doesn't seem to help, or I have not found the magic technique.

    (4) restart FF and everything is fine.

    The question seems so FF not to recognize the need to revisit the resolution of the retina.

    You are welcome

  • Firefox will not display on the screen even though with Process Explorer, I see active Firefox.exe but no CPU usage

    I use Firefox as default browser v10.0.2 on Dell XPS8300 Intel Core i5 and Windows 7 Ultimate and Compaq Presario CQ57 IO IO Intel Core i3 and Windows 7 Home. More frequently on the (approximately 90% of attempts) that Dell (50% of attempts) Firefox will not display on the screen when I click the icon. Cannot display other programs when it happens. I expressly say display because I believe that Firefox has started. To work around the problem, I installed Process Explorer on both machines and launch this program first, then click on the Firefox icon. When the problem occurs I see process Firefox.exe in the list of processes; some CPU consumed but, then, no CPU activity. If I click on the Firefox icon, yet another process opens in the list of processes, but with the same answer - some consumed CPU and then no CPU activity. If I have 2 processes running and kill the process from the 1st, the 2nd poster and then everything is normal. If I do not open it treat a 2nd, but kill the 1st process then click the Firefox Firefox is displayed and all then is normal. This problem has occurred since the original on the two new machines installation. I have updated the video drivers on both computers.

    OK, let's see if we can solve this problem and make it work for you!

    First of all, if you start Firefox in safe mode (restart your computer first, then when you open Firefox, hold down the SHIFT key) it starts more reliable? This is usually caused by a defective module. If this does not help, then restart Firefox, go to the Firefox, then add-ons button and disable your extensions one by one until you find the troublemaker.

    Also, try to update to Firefox 11, it has several bug fixes that might make life easier here.

    Just as a few troubleshooting steps base to ensure that we have all the bases covered,
    Run all Windows updates, install all required service packs, etc.

    Update all of your plugins (Flash, Java, etc.): http://www.mozilla.org/plugincheck/.

    Download and install MalwareBytes Anti-Malware, run a full scan. http://www.malwarebytes.org/. This check allows that there is no virus on your computer, causing problems. You can uninstall this program after having cleaned the infections.

  • Satellite L500-1XD constantly restarts & display recovery blue screen

    I bought a laptop Toshiba Satellite L500-1XD from an Argos store in August. Shortly after that I got it occasionally rebooted itself and displays blue screen of recovery saying that the laptop has recovered from a hardware failure. It has become more common recently and he often stops, displays the blue screen, reboots and done over and over again.

    I do not have many new programs on the laptop and that you have installed all updates. I deleted programs I have installed with the exception of Microsoft Office.

    Another thing that could be linked so that when the laptop starts, he says the Toshiba Service Station has stopped working and trying to find a solution to the problem.

    I'd appreciate any advice on how I might remedy this

    Thank you in anticipation

    Hi katrina_1,

    This means that the pre-installed Windows version is still installed, right?

    Well, I think that it of difficult to say why it happens it could be a hardware or software malfunction. The two may be possible.
    The reasons of the majority of blue screens are drivers or hardware itself are all properly installed devices in Device Manager or do you see yellow exclamation points?

    In your case, I'll try to reinstall Windows. Maybe it s only a software problem or driver
    Also if you have installed both modules of memory long live, test it with a module only. You can also use Memtest86 or another tool of diagnosis of RAM to test the memory modules RAM for failures.

  • Display on my screen has turned 90% left on satellite

    Greetings from Scotland.

    I have a problem with my laptop screen and I was wondering if someone can help me.

    The display on my screen has turned 90% left, so the top of the page is to the left of the screen to the right of the screnn instead of up and down, running all of the ideas of how fix?

    concerning

    Kevin

    Hello

    You have an Intel graphics card?

    If Yes, then you could change the display position using this key combination:

    Turn to normal: CTRL + ALT + UP
    Rotation 90 °: CTRL + ALT + LEFT
    Rotate 180 degrees: CTRL + ALT + DOWN
    Rotation of 270 degrees: CTRL + ALT + RIGHT

    If you use another graphics card please check the graphic properties and advanced settings

  • Satellite L670D-103 - nothing displayed on the screen

    Hello, please help, my laptop does not start!

    When I push button 'ON', there is nothing displayed on the screen, but the fan is running, the lights are on except the HARD drive light. The motherboard seems to be ok then, but there screen is always black! For your information, my HARD drive is nearly full (319, 8 GB / 320 GB) and I did not create Toshiba recovery disc

    What is a screen or an OS problem, and how can I fix it? The screen display depends on the OS to start and the screen won't work if the OS is recovered?

    Thank you
    Concerning

    Hey,.

    Theoretically, it could be a malfunction of the card Mother poster to find this point connect an external monitor to your laptop and if the internal display is faulty, you should see something on the screen. Otherwise another part is at the origin of the problem.

    This problem has nothing to do with the HARD drive. Even without disc HARD is installed you should see the screen of the Toshiba BIOS at least.

    Why you have not created the Toshiba Recovery disk?
    The recovery disc can restore the factory settings on the HARD drive, but in this case it will not help you. Recovery disk is only software (Windows).

  • How to display on my screen 2 different applications at the same time?

    How to display on my screen 2 different applications at the same time?

    Hello

    The best place to ask would be the forums for answers corresponding to your version of Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    =====================

    If you have Windows 7 with Aero - click with the right button on the taskbar at the bottom of the screen and click on 'show windows '.
    Side by Side.

    For all versions of Windows:

    You could also reduce less than full screen using the small box to the left of the red X at the top right
    and then resizing windows as you want.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • After the upgrade from Vista to Windows 7 games installed in my laptop (Chainz, Cubis and Bejeweled, etc.) have bars on each side when displayed in full screen.

    I have a laptop Acer Aspire with a screen 16:9 wide (15.6 "), it has the latest graphic drivers ATI and all operating system updates.  After the upgrade to W7 (free upgrade with the purchase of the laptop) everything works wonderfully except all the games installed now not displayed in full screen, I get black bars on both sides, they used for Vista, but not with W7.

    I already tried different settings in the games options, administrator, resolutions screen different, being run in maximized 'Vista' and 'Run' mode of the file properties dialog box shortcut and .exe.  This happened without any security program installed that is not a factor.

    I am at a loss.

    This is to maintain the ratio l / h. It is how the images stretch. ATI no longer has the opportunity to play with the proportions for the sort of stuck like that unless you can find in your version of ATI Catalyst. It is in fact full screen as opposed to windowed mode, but it does not cover the entire screen.

    You can try different resolutions within the application to see if it will actually make your apps full screen to use the entire screen. That's all, remains to be done. I don't know why ATI has decided to exclude this option because some people hate the black bars or hate the stretched images.

Maybe you are looking for