Problem in creation of alert dialog

I m be problem in the thread dialog box creation not event. I want to alert a listener class dialog box. And for this I used this code

 UiApplication.getUiApplication().invokeLater(new Runnable(){

                 public void run(){

                   Dialog.alert(" Loading...");

                 }

               });

It is created in documentCreated BrowserListener method, but after this dilog, browserField indicates that the owner thread has died. What should be the solution in this case?

This works perfectly for me. Can you clarify the problem or if possible glue code?

Tags: BlackBerry Developers

Similar Questions

  • problem with creation of file resources Eclipse plugin (or 1.0)

    I have problems with the creation of a resource file using the Blackberry for Eclipse version 1.0 plugin (later).

    (1) I which is the main project in the workspace, right mouse-click and click New | Others.
    (2) in the "Select a Wizard" dialog box, select BlackBerry | BlackBerry resource file and click Next
    (3) in the 'new BlackBerry Resource File' I click on the name of main project, which informs the "enter or select the parent folder" box.
    (4) I type a name for the resource-"res.rrh" file in the "File name" box
    (5) the following buttons and complete stay outside grey-ed.  Only the advanced buttons, back and cancel are available.

    According to the online manual for the plugin, the finishing touch should be available at this stage.

    At the top of the window, he said "Selected paretn should be under the source directory of the eclipse.  What does that mean?  I tried the project file and each directory in there.  This message does not disappear and the buttons remain out of grey-ed.

    How can I create a resource file using this plugin?

    Pau

    I discovered the solution.  Under the {project} \src directory, I had to create a new directory called Resources.  Then I was able to follow the steps I gave initially and could choose resources such as the parent directory.  The button become clickable.

    No where in the documentation of BB he said I needed to create a directory under CBC before doing the steps documented.

  • Alert dialog box that prevented an application

    Hello

    I have a problem: I need to add a "ask dialog" to my request:

    Dialog.ask (Dialog.D_YES_NO, "Do You want to trust administrator?");

    but I can use it in the constructor. When I try to put the dialog box asking you in other parts of the program (I need to have one in the run() method in the other thread) - it blocks! and an alert shows nor the application runs...

    do you know if there are alerts of dialogue that do not block the program?

    concerning

    Use EventLock or UiApplication.getUiApplication .invokeLater)

  • Problems of Firefox and AVG dialog

    I have a weird problem that just started today. My antiviris AVG program maintains the opening of dialog boxes to download what it claims it's a file cpm.htm, described as a file HTML Firefox and coming from cpm.avg.com. Box asks if I want to download the file. I can't close the unhappy things if I close one, another opens, it's like dealing with the head of Medusa.
    It doesn't seem to be any email support for AVG, just a USA phone number (I'm in the United Kingdom). Did somebody encountered this problem? I guess it's a virus, but none of my 'tools' have found anything (SpyBot, Malware Winzip).

    Problem is now solved. It was an AVG issue and not Firefox but necessary remote tech support for AVG to kill the problem.

  • Problems of creation of custom buttons

    Hello, I'm trying to create three custom buttons here in my application's main window.  I did a CustomButtonField class to try to change around the colors and size, but when I run my application no buttons appear in my application?  What I am doing wrong?

    Help, please.

    The main window class.

    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Background;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    
    public class MainPage_Recipes extends MainScreen
    {
    
        private VerticalFieldManager _manager ;
        CustomButtonField findButton;
        CustomButtonField submitButton;
        CustomButtonField aboutButton;
    
        public MainPage_Recipes()
        {
    
            try
            {
    
                 FontFamily Global = FontFamily.forName("BBGlobal Serif");
                 Font appFont = Global.getFont(Font.PLAIN, 8, Ui.UNITS_pt);
                 setFont(appFont);
    
                 Bitmap labelImage =  Bitmap.getBitmapResource("chef2.png");
    
                 add(new CustomLabelField ("Find A Recipe", Color.WHITE, 0xff0000, labelImage, Field.USE_ALL_WIDTH));
    
                 _manager = (VerticalFieldManager)getMainManager();
    
                 Background bg = BackgroundFactory.createSolidBackground(0x00DDDDDD);
                 _manager.setBackground(bg);
    
                 FieldChangeListener findCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            findRecipe find = new findRecipe();
                            UiApplication.getUiApplication().pushScreen(find);
                        }
                    };
                 FieldChangeListener submitCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            submitRecipe submit = new submitRecipe();
                            UiApplication.getUiApplication().pushScreen(submit);
                        }
                    };
                 FieldChangeListener aboutCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            aboutApp about = new aboutApp();
                            UiApplication.getUiApplication().pushScreen(about);
                        }
                    };
    
                 findButton = new CustomButtonField(" Find Recipe ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 findButton.setChangeListener(findCan);
                 submitButton = new CustomButtonField(" Submit Recipe ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 submitButton.setChangeListener(submitCan);
                 aboutButton = new CustomButtonField(" About ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 aboutButton.setChangeListener(aboutCan);
    
                 _manager.add(findButton);
                 _manager.add(submitButton);
                 _manager.add(aboutButton);
    
                 add(_manager);
    
            }
            catch(Exception e)
            {
    
            }
        }
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
            menu.add(_cancel);
    
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
    
                Dialog.alert("Goodbye!");
    
                System.exit(0);
    
            }
        };
        private MenuItem _cancel = new MenuItem("Cancel", 110, 10)
        {
            public void run()
            {
    
            }
        };
    
    }
    

    Class CustomButtonField:

    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    
    public class CustomButtonField extends Field
    {
        private String label;
        private int backgroundColor;
        private int foregroundColor;
    
        public CustomButtonField(String label, int foregroundColor,
                int backgroundColor, long style)
        {
            super(style);
            this.label = label;
            this.foregroundColor = foregroundColor;
            this.backgroundColor = backgroundColor;
    
        }
        public int getPreferredHeight()
        {
            return getFont().getHeight() + 8;
        }
    
        public int getPrefferedWidth()
        {
            return getFont().getAdvance(label) + 8;
        }
    
        protected void layout(int width, int height)
        {
            setExtent(Math.min(width, getPreferredWidth()), Math.min
                    (height, getPreferredHeight()));
    
        }
        protected void paint(Graphics graphics)
        {
            graphics.setColor(backgroundColor);
            graphics.fillRoundRect(1, 1, getWidth()-2, getHeight()-2, 12, 12);
            graphics.setColor(foregroundColor);
            graphics.drawText(label, 4, 4);
        }
        public boolean isFocusable()
        {
            return true;
        }
    }
    

    Help, please.

    Thank you

    Scientist

    Hi, I discovered very pblm is

    This.getPrefferedWidth usage and height, I think you will get it.

    protected void layout(int width, int height)     {     // TODO Auto-generated method stub        this.setExtent(this.getPrefferedWidth(),this.getPreferredHeight());   }
    

    Concerning

    Rakesh Shankar.P

  • Problem with creation of DVD Windows 7

    My creation of DVD Windows 7 stop decoding when you try to burn a DVD, it just sticks at about 2.7 and does not restart. PC Burns OK on other things

    Windows DVD Maker any ideas?

    My creation of DVD Windows 7 stop decoding when you try to burn a DVD, it just sticks at about 2.7 and does not restart. PC Burns OK on other things

    Windows DVD Maker any ideas?

    =====================================
    Disable all filters in creation of DVD before burning
    the DVD can be worth a try...

    See the following article:

    How to burn DVDs with Windows DVD Maker in Windows 7
    http://www.7tutorials.com/how-burn-DVDs-Windows-DVD-Maker
    (scroll waaay down for...) What to do in case of problems)

  • Problem blackBerry Smartphones SMS alert

    Hello

    I have a blackberry torch 9860.It no more alerts not received text messages (SMS), I consulted the menu messaging and activated alerts in received messages (in all profiles) and still it does not give an alert when an SMS arrives and I have to manually access the SMS Inbox to see received messages.

    I'll also take the opportunity to ask, I don't have the blackberry package in my blackberry mobile. So I can't access the internet even if I connect to a Wi - Fi network?

    I thank all those who can help me.

    Try a battery pull to fix the SMS problem. With your phone, remove the battery and then replace it.
    You can always access the internet without BlackBerry data. Do a search for the Opera mini browser for surfing via Wi - Fi.

    See you soon.

  • Facing problem in creation of domain.

    Hi friends,

    I tried to create the domain for ADF Application.I is entered in the Configuration Wizard, I have Oracle Enterprise option in the Page template.

    I confused in the database Configuration page. What database, I need to enter. I got my data from the local database, so I have the local database when I click on the button get the Configuration of the remote, it says "connection to the server database...". OK"'retrieve schema data from Server database... Failed. I think I need to create the schema in my database. I don't know how make Configuration.Any RCU body have ideas please share with me... I'm waiting... My id is [email protected] (any paper send me PLZ)...

    Hi friends,

    I got the answer to my post.

    Solution:

    I first create the RCU in my database. Then I create the domain using the schema of the remote control. I set my RCU name created in my domain creation step.so the problem is resolved. Thank you guys.

  • problem in creation of mailboxes on exchange

    Hello, I have still problems creation of mailboxes.

    So that's when I add isolated pearls works ok.

    When you add multiple accounts of users followed some are ok, others are little MailUsers.

    Added a sleep in after vbs run powershell:

    Shell.Run "C:------Windows-System32------WindowsPowerShell------v1.0------powershell.exe - noexit-command ' C:-Program Files------Microsoft------Exchange Server------V14------bin------RemoteExchange.ps1 '; SE Connect-ExchangeServer. Auto; Enable-Mailbox-Identity "& args. Agenda (0) & "-database"& args. " «Element (1) & "' > >" & args.» Item (2) & ";". " Set-Mailbox-Identity "& args. Agenda (0) & "-EmailAddressPolicyEnabled forgery of $; exit 0 ", 20

    .

    Any suggestions?

    The response of the connector was always "the remote script has been run", which sometimes have not quite created the mailboxes.

    The solution was to change the map and returns before the answer, check if there is.

  • Corruption problem of block in alert and rman/dbv No. display errors

    Hello, I am new in Oracle world. I have a problem with Oracle 10.2.0.4 (RHEL 5.6) x 64. Select the redo-log archives

    In the alert.log, three days ago show (server a kernel panic & rebooted):

    Sat Sep 24 18:18:17 2012
    A hexadecimal dump (file 17, block 669888) in trace file xxxxxxxxxx.trc
    Corrupt block relative s/n: 0x044a38c0 (17, block 669888 file)
    Bad checks the value found in the read buffer
    Bad block data:
    type: 6 format: 2 rdba: 0x044a38c0
    last change the SNA: 0x0000.14eb5309 seq: 0 x 1 flg: 0x04
    spare1: 0 x 0 spare2: 0 x 0 spare3: 0x0
    consistency in tail value: 0 x 53090601
    check the value in the block header: 0x6ea3
    checksum calculated block: 0x2
    Reread the rdba: 0x044a38c0 (17, block 669888 file) found the same corrupted data
    Sat Sep 24 18:18:19 2012
    Found corrupt block
    TSN = 23, TSNAME IS TABLE_TSD1
    RFN = 17, BLK IS 669888, RDBA = 71973056
    OBJN = 86908 OBJD = 86908, OBJECT = SYS_C0040110, SUBOBJECT =
    SEGMENT OWNER = SCHEMA1, SEGMENT TYPE = Index Segment


    Yesterday, we detected this error because SQL do not run.

    The error repeat 47times and there are 6 different files-block combination (4 index of schemas, tables sys and ¡2 1!)

    First of all, I launched expdp and exp of a problematic figure. Exports were fine, no error when you export, but in the alert.log don't show a block corruption. He exp and experienced display error and stop?

    Then, I used dbv and check all dbfs. Display only the 2 error of blocks in two data files (index).

    Then, I have used RMAN:
    (A) database check: no error.
    (B) validate the database: error in two blocks (logical error) and different from the 6 in the alert.log. The two blocks are clues.

    I re - create the two index. When I re - create, the block error disappear (not immediate, assume that disappear when the block was rewriting). Now, dbv and rman show no errors.

    I read a note on the types of errors, the other on procedures if db is in archivelog/noarchivelog. Also if the object is a table or index. But I find nothing corrupt self-repair blocks in Oracle or why now the 6 block error are resolved. I don't know if the two tables with two block corrupt lines lost or not.

    Appreciate any help.

    Concerning

    Try this:
    ANALYZE TABLE table_name VALIDATE STRUCTURE;
    and
    ANALYZE THE INDEX... VALIDATE THE STRUCTURE;

    Second option:
    http://docs.Oracle.com/CD/B19306_01/server.102/b14231/repair.htm

    Published by: Fran on 27-sep-2012 05:55

  • Problem: No 'close' in the dialog audio slide...

    Hello

    I a few days ago I downloaded/installed upgrading Captivate 6 and today just noticed there is no way to get out of the dialog box "audio slide.  Something just wrong in the installation?

    There is no 'save' and the 'Close' button in the sidebar...   I had to close Adobe Captivate with the Task Manager in order to avoid the problem.

    Slide Audio Dialogue Box.jpg

    Hello

    Can check you create Adobe Captivate preferences, no doubt, they are broken.

    To re-create the preferences - close Captivate, navigate to C:\Users\Your user Name\AppData\Local\Adobe-

    Rename the Captivate 6.1 folder (/ 6.0), you may need to activate the display option "hidden files and folders" in the Windows Explorer by using Tools - Folder Options

    Relaunch the Captivate and check.

    Thank you.

  • Disable "prevents this site of creation of additional dialog boxes.

    I use the current version of Firefox and when you use a particular website (Microsoft CRM online) I'm getting frequent pop-up dialog boxes (which is expected functionality).
    The question I have is that Firefox will ask me (in a dialog box) if I want to "prevent this Web site to create additional dialog boxes. I understand the reasoning behind this, but I don't want that. I would have preferred that the dialogues will behave in the same way as in other browsers.

    Can I disable this feature at the domain level or browser?

    Hello james.reinhardt, see if the response of the jscher2000 fit for you.

    Also note that latest firefox is 33.0.2 (today 4 November 2014).

    Thank you

  • Problem enabling creation of the Hyper-V in Windows startup!

    I use HP Pavilion Notebook 15-N-201TX, configuration are as follows:-

    • 8.1 Windows Embedded industry Pro 64-bit
    • RAM - 4 GB
    • Intel Core i5-4200U CPU
    • Mode of BIOS - UEFI, Version F.66

    Whenever I have activate the Hyper-V technology and restart the computer, it stuck on the screen start and after a while, it redirects me to diagnose the PC and launch the "Startup Repair".

    I'm a Windows Phone developer, and for this I have installed all the required components of Visual Studio, including emulators.

    I activated the technology of virtualization in the BIOS.

    At the point where I have activate the Hyper-V technology and restarts, the problem occurs...

    Any Solution?

    Thank you

    Rudraksh Pathak

    MSP-India

    Hi @rudraksh,

    Thank you for your response.

    Here is a link to the computer does not start and the lights blink or computer beeps that should help you.

    After research in the HP forum, I found the post State of the Bluetooth is not compatible with virtualization, and if you turn it off, you are then able to start.

    If this is the case, you will need to disable the Bluetooth before enabling virtualization.

    Once you leave the virtualization you can then re-enable the Bluetooth if you want.

    Please let me know if this is the case, for later use.

    If this did not help, I'm sorry, but HP does not support virtualization.

    Good luck!

  • Alert dialog IM still not open

    Is it possible to keep a dialogue IM on top of the table top, so that when I'm not at my desk when an IM crosses, I will be able to see the alert window when I get back?  Many people complain of a lack of IMs.  There seems to be no way to resolve this alert.

    Hi Jeanine Guzman.

    ·          Are what instant messaging you referring?

    Each instant messaging as long as its own features and options to enable certain features.

    You will need to contact the seller of Messenger to learn more about its features and functionality.

  • Problems of creation of matrix Raid

    Hello

    someone encountered problems with Western Digital (WD1000FYPS) discs, I just bought a NSS6000 for our lab and when configuring the RAID I appear to get player disconnects, i.e. the sycronisation process goes well for about 2 to 2.5 hours then one disk disconnects and then appears as a new drive.

    I tried this with 4 x disks in RAID 5, 3 x disks in RAID 5 + spare and 4 x disks in RAID 10.  Disconnect appears completely random in what drive it is.

    any help would be appreciated, has soon

    BH

    I apologized to be your hard drive is on the supported list. Try to upgrade the firmware of the NSS6000 may be damaged.

Maybe you are looking for