Yes/No dialog

I took a peek in the Java BlackBerry Developer documentation, but I have seen no mention on how to create a Yes / No dialog box. Could someone point me in the right direction?

Must have been a very brief look.

See the documentation for the API for the "Dialogue".

RET = Dialog.ask (Dialog.D_YES_NO, "Are you sure?", Dialog.YES)

Tags: BlackBerry Developers

Similar Questions

  • Yes/No dialog box

    Is there a standard way to produce a Yes / No dialog box only box to display when the user tries to delete a record? It doesn't matter if the text is anything other than Yes/No.

    Just to confirm it on the link

    href = "..." "

    "RSW14" wrote in message
    News:gh17q0$PJS$1@forums. Macromedia.com...
    > Should have said - that the deletion occurs subsequently to choose a
    > 'remove' link. There is no form involved.

  • Does anyone know how to change the culmination of auto from 'no' to 'yes' in dialog.ask?

    No big deal here, I want to just my 'Yes' button, highlighted initially instead of the 'no' in the dialog.ask function. Anyone know how to change it? Thank you!

    Something like that?

    int choice = Dialog.ask (Dialog.D_YES_NO, "You want to stop downloading?", Dialog.NO);

  • Yes/No startup dialog box should stop the process of launchign the app

    Hi all

    I admit, I posted this question already and gave a lot of code examples on StackOverflow here:

    http://StackOverflow.com/questions/10620605/BlackBerry-show-dialog-on-startup-and-wait-until-dialog-...

    But I also read of strange peter here:

    http://supportforums.BlackBerry.com/T5/Java-development/sample-quot-Please-wait-quot-screen-part-1/t...

    The two did not help. Because I really need help with this, I hope you will forgive the Crossposting. I commit to provide the solution on both platforms, as soon as I have a.

    In short, what I'm trying to do is to have a YES / NO dialog at the start of the application. The renewed start-up must be stopped until the user clicks Yes or no. If he clicks on Yes a method must be called and after the method has been completely transformed, startup should continue.

    Thank you very much.

    Dinakel

    no need for a global screen, that the application is in the foreground.
    Just use pushModalScreen or Dialog.ask or similar.

  • Problem with dismissing the dialog box

    Hello world

    This is my first post here. Sorry if the question is very simple...

    I need to download an image on server. I display a dialog box to confirm if the file should be downloaded.

    Everything works well except that the dialog box is dismissed after that the whole process is over. I know I'm missing something-related threads. pls help me to understand.

    Here is my code:

    public void fieldChanged(Field f, int context) {
        if (f == addButton) {
                        FileSelectorPopupScreen fps = new   FileSelectorPopupScreen();
            fps.pickFile();
            theFile = fps.getFile();
    
            if (theFile == null) {
                Dialog.alert("Screen was dismissed.  No file was selected.");
            }
            else {
                UiApplication.getUiApplication().invokeAndWait (new  Runnable(){
                public void run(){
                    int confirmationResult = Dialog.ask(Dialog.D_YES_NO, "Do you                    want to upload?", Dialog.YES);
                    if (confirmationResult==Dialog.YES) {
                             status=1;
                    } else {
                             status=0;
                    }
                }
              });
    
            }
    
            if(status==1){
                Thread t= new Thread(){
                    public void run(){
                        //MY CALL TO WEBSERVICE                     }
                }};
    
                try{
                    t.start();
                    t.join();                                           refreshData(); //call to method to post the image data to server                        //and refresh the screen with new image
                }
                catch(Exception e){
    
                }
    
                }
            }
    
        }
    

    My problem is that the I selected YES the dialog box only after the call to webservice licensees are completed and the image is published on the server and the screen is refreshed with the new image.

    Let me know what I'm missing.

    Welcome to the forum!

    Correctly, you start the process of network on a separate Thread.  Then you attach the wire event for this Thread by using the following instructions:

    t.Start ();
    t.Join ();

    So you give up the thread of events not until your networking activity has finished.  It does not block your event feed so that your application will become unresponsive to the user and as you noted, activities requiring feed event, such as the removal of your dialog box, cannot occur.

    You must reprogram your treatment so that the activity of the network as a completely asynchronous operation.  You can't wait on this.  You should get to tell you when it has finished.  I suggest that looking at the observer model during the implementation of this process.

  • Help with the substitution of the ButtonBack to include a yes / no dialogue

    I'm showing the Yes No dialog box when the button is pressed in a webworks blackberry application.

    That of all on the page loading and works very well when I put just a warning instead of the YES / no dialog box. However when I don't put in the dialog box any of the script works even not the beginning of the half

    Any help would be appreciated.

    I tried the java thread here and they sent me here.

    function init()             {             var newtext = "some text goes here";             var newpic = '';             var newpage = newpic +"

    " + newtext; document.getElementById("txtHint").innerHTML= newpage; blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK, function() { int askCoupon = Dialog.ask(Dialog.D_YES_NO, "this is a yes no box test", Dialog.NO); // if (askCoupon == Dialog.YES) // { // } }); }

    Can I suggest you try something like that: -.

    function init()
                {
                 var newtext = "some text goes here";
                 var newpic = '';
                 var newpage = newpic +"

    " + newtext; document.getElementById("txtHint").innerHTML= newpage; blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK, function() { alert('test'); var answer = confirm("Are you sure you want to go back?") if (answer) { alert("They chose YES") } else { alert("They chose NO") } }); }

    The previous code, you had produced an online syntax error: -.

    int askCoupon = Dialog.ask(Dialog.D_YES_NO, "this is a yes no box test", Dialog.NO);
    
  • First Watch a unexplained file to open a project dialog box but does not say what he wants or case?  Really?

    It is a common phenomenon: I opened a project in first, and instead of the interface user of first, I see a file dialog box.  Apparently first is looking for a file, since there is an option for "display only exact name match.»

    But corresponds with what?  Is nowhere on the screen there a file name, or anything to tell me first seeks.  Isn't this monumentally stupid?

    And so forth, over and over again for each file first can not find.  Your only viable solution is to hit "Skip All", since you are never given a file name.

    Once the project is in place, you can browse your timelines for any red video event.  And when you do a right-click on one of them to view its properties, first show you often inexplicably the name of an audio file.  Sometimes, you see the name of a video file.  But what is missing here, Adobe?  THE path.  You get the name of the file and nothing else.  You have still no idea where first expected to find the file, so you have no way of troubleshooting of his disappearance.

    And I thought the dialogue of media-reissue of old FCP links was bad.  Is there a solution for this?  What is the workflow expected here?

    Thank you!

    Looks like you're on Mac El Capitan (OS 10.11.x), is that correct? If Yes, some dialogs changed with 10.11 Mac and affected dialog boxes are more display the title bar, which is where this information is displayed (this affects a number of applications, not just the first one). Is a question that is being investigated because he was not a problem on Mac OS 10.10.x.

    Since CS6, it has improved to the Media link dialog box (as seen in the screenshot by shooternz).

  • How to create a window Yes/No Message?

    Hi can someone help me on how to create a window yes/no message for my confirmation of deletion procedure?


    Thank you...

    Jon fuller

    Hi Jon,

    Please see the link to create the below yes / no dialog box.

    [http://oraclearea51.com/code/code-snippets/oa-framework/tutorial-code/how-to-create-a-yes%10no-dialog-page-in-oaf_17.html]

    Kind regards
    Sudhakar.

  • Why your user interface let someone destroy any list of "next" one click - no confirmation?

    It is a really boring design. I thought someone would have this fixed for the latest Apple TV. I could have queued up to 30 songs to the following list, but if my finger slides while keeping the button down all pending the pop-up menu or the remote control is not exactly aligned with the device such as the click but not the hold record 31 song, it will play the current song has highlighted and wipeout music already queued. Someone can't give a brother a Yes / No dialog box no box for it? And no I'm not going to create a playlist for a transitional lists.

    As this is a forum for users, there is no much we can do.

    Give your comments directly

    http://www.Apple.com/feedback/

  • on the confirmation of an action

    I need a little assistance.
    After the choice is made, how do I know which choice is made...
    I mean, if yes is selected, follow these steps... If not - does this

    String [] choices1 = {'Yes', 'No'};
    Dialog.ask ("are you sure you want to submit?", choices1, 0);

    This should do it:

    http://supportforums.BlackBerry.com/T5/Java-development/retrieve-value-from-dialog-ask/TD-p/361189

  • stay on the current page. When the user presses ESCAP.

    int

    if (type1 is Dialog.OK)

    {

    intask (Dialog.D_YES_NO, "Please confirm");

        if (type is Dialog.YES)

    {

    perform your task if yes

    ClearAll();

    Login_Screen.disconnect ();

    UiApplication.getUiApplication () .pushScreen (new L_Screen());

    }

    }

    if (type1 is Dialog.CANCEL)

    {

    What should the code because I want to stay on the page current user //press whe cancel but

    }

    Type1 = Dialog.ask (Dialog.D_OK_CANCEL, "Do you want to disconnect now?");

    Hello friends,

    I do the page to disconnect. I want to give confurmation beform logout. Everthing is working. but

    Aler dialogue ask first you want to disconnect or not?

    If he says cancle I want to stay on the current page. but still he go on the back. When your press esce I check everything.

    Please tell me what is the code to stay on the current page when the user press cancle alser dialogue?

    That's what I understood.

    I don't think you understood what I was saying. so here's an example of code:

        protected boolean keyChar(char character, int status, int time) {
            switch (character) {
                case Characters.ESCAPE:
                    confirmClose();
                    return true;
                default:
                    return super.keyChar(character, status, time);
            }
    
        }
    
        private void confirmClose() {
            int resp = Dialog.ask(Dialog.D_YES_NO,"Do you really want to Quit",Dialog.NO);
            if ( resp == Dialog.YES ) {
                resp = Dialog.ask(Dialog.D_YES_NO,"Do you really, really want to Quit",Dialog.YES);
                if ( resp == Dialog.YES ) {
                    // Close the screen as you currently do it
                }
            }
        }
    

    If you don't mind asking me, please use English. for example, the letter "y" is, is not the question why.  I recommend this spell check you your messages also, don't forget that a lot of people who use these forums are not native English speakers, so we use English must be as clear as possible.

  • Installation of the Windows 8 driver

    I have a new HP ENVY h8 1455 computer running Windows 8. My all-in-one HP J4680 appears in the control panel that need troubleshooting - in need of a driver. I downloaded the installer of Windows 8 features full driver. When you run it I get a prompt of Windows 8: ' do you want the following program to make changes to your computer? Yes, the dialog box disappears, and then apparently, nothing happens. I get no installation procedure, no Wizard, nothing. The status of the device in the Control Panel does not change.

    If anyone else has experienced this? Does anyone have any suggestions?

    Interesting, Joe, what you say, you can not install the printer right now. For more information you connect the printer wireless via USB or with an Ethernet cable?

    If you install with a USB cord and that you have connected the computer before installing the software then you have probably installed on accident the Plug and Play of MS and not full of HP drivers. I would make sure that if that happened that you remove these drivers as completely as possible from the computer after disconnecting the USB cable. Then, follow the link and install the drivers full features:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=MP-109973-1&cc=us&DLC=en&LC=en&OS=4132&product=3692888&sw_lang=

    Let me know if this helps solve your problem!

  • User choose the alert folder

    Hi all

    very new to scripting and I'm just kinda stuck.

    I made a script that works, but I want to refine even more to make it more user-friendly.

    When the script starts, it asks the user to choose a folder where their images, but there are two problems with that.

    First of all as the default dialog box the DESKTOP folder and the user accidentally press OK, the script will take action even if it is an incorrect location.

    Secondly there is no exit procedure if uses rather press CANCEL in the dialog box.

    I'm trying to implement a fail-safe, so the end-user will have feedback that is when pressing OK a popup asking the user if the folder "x" corresponds to the correct location and give a YES/NO dialog - YES go - PERSON will go back to the file selection screen.

    Also, I need to make the script exit cleanly if the user selects the button CANCEL on the file selection screen.

    Here is a snippet of my code as it is:

    // Ask user for DARK input folder
    alert("Please Choose The Folder Where Your DARK Frames are located.", "DARK FRAME FOLDER LOCATION");
    
    
    var DARKinputFolder = Folder.selectDialog("****Please Select The Folder Where Your DARK FRAMES Are Located****");
    
    
    // Ask user for LIGHTS input folder
    alert("Please Choose The Folder Where Your LIGHT Frames are located.", "LIGHT FRAME FOLDER LOCATION");
    
    
    var LIGHTSinputFolder = Folder.selectDialog("****Please Select The Folder Where Your LIGHT FRAMES Are Located****");
    
    
    // ***HANDLE THE DARK FRAMES***
    
    
    // get all files in the DARK input folder
    var FILE_TYPE = ".orf"; // The type of files that this script works on -- you can change
    var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files
    var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK);
    
    
    if (DARKfileList.length <= 0)
    {
    var FILE_TYPE = ".tif"; // The type of files that this script works on -- you can change
    var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files
    var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK);
    }
    
    
    if (DARKfileList.length <= 0)
    {
    var FILE_TYPE = ".tiff"; // The type of files that this script works on -- you can change
    var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files
    var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK);
    }
    
    
    if (DARKfileList.length <= 0)
    {
    var FILE_TYPE = ".jpg"; // The type of files that this script works on -- you can change
    var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files
    var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK);
    }
    
    
    if (DARKfileList.length <= 0)
    {
    var FILE_TYPE = ".jpeg"; // The type of files that this script works on -- you can change
    var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files
    var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK);
    }
    

    Any help would be appreciated

    Kind regards..

    There was a typing error in the above code. You put it ';' is not fair. I put a hat i because, if it's bad. The code should be:

    var myFolder = new Folder('/c/test');
    var holdFolder = new Folder()
    
    var dlg = new Window('dialog','Select a Folder');
        dlg.getTheFilesBtn = dlg.add('button',undefined,'Select a folder');
            dlg.getTheFilesBtn.onClick = function(){
                holdFolder = new Folder(myFolder);
                holdFolder = Folder.selectDialog('select a folder to process',myFolder);
                if(holdFolder){myFolder = holdFolder};
                dlg.close();
            }
            dlg.show()
    
  • First will not quote the source files, it is trying to locate

    Hi, when I opened a project first wants me to identify the source files but it fails to tell me that he's looking for! Anyone know why?

    Looks like you're on Mac El Capitan (10,11, x), is - that correct? If Yes, some dialogs changed with 10.11 Mac and affected dialog boxes are more display the title bar, which is where this information is displayed (this affects a number of applications, not just the first one). Is a question that is being investigated because he was not a problem on Mac OS 10.10.x.

    FWIW, in the latest versions of CC, the feature has been added to the Media link dialog box, which displays the path information in the dialog box. I know that it is not for you, since you are using CS6, but FYI if you plan to update.

  • 32 to 16 Bit Conversion CC 2014

    When using Merge To HDR Pro Photoshop CC and get the desired results, we could convert 16-bit with preserved appearance during the conversion of the Image > Mode > 16 bits > do you want to merge > Yes > toning dialog box > exposure and Gamma, and then by selecting 0/1.

    I haven't used it since the update in 2014, but that dialogue isn't there anymore, at least I can't not to him.  Is he past? What to do instead to preserve the appearance of the 32-bit image that I adjusted in ACR or Lightroom?  In addition, it is perhaps another question, but when I use Merge To HDR Pro the resulting image of 32-bit looks like it has changed color and definitely has a greenish tint and I don't know why.  Anyone elese know this?

    Thanks for any help.

    Howard

    Well, the only one I can think of would be to Edit > file management > use Adobe Camera Raw to convert documents from 32 bits to 16/8 bits. In this case, you would see ACR open, so I doubt that the option is checked. Unfortunately, the preference given to zero, that's probably what you have to do.

    Benjamin

Maybe you are looking for

  • SSD Macbook Pro problem

    Hello. Recently, I made the purchase of a Samsung SSD 850 evo and installed according to the advice of own Samsung (https://www.youtube.com/watch?v=mihb8YQzDxw & list = LL3FXtTPsf_dcteBdBwPvH4g & index = 1). "Could not unmount volume" or trying to cl

  • How to remove rogue spyware xp guardian

    I wonder how to remove xp guardian rogue spyware which is imitating the window Security Center. I can go online, if I use the Task Manager to "end now" every few minutes! I ran a full scan with essential, Defender and removal of malware and nothing s

  • I changed user names, but the files and folders show again old name

    I got my sisters computer and changed the name of user (jb-administrater) account, but when most of the programs have access to my files and folders that they are still called jenifer documents, how can I change this?

  • BlackBerry Q10 Q10 wireless with iCal on Mac. Is there an easy way to do this?

    The title is little but any ideas would be much appreciated. Thank you Mike

  • Internet disconnects randomly

    OK to give a little history, I've been playing around with the system setting I wasn't suppost to (mac address settings) and my problem started shortly after I did. any ideas? It will connect for a good hour, auto disconnect reconnect and has no inte