How to call the no GUI Library user interface

Hello

I'm showing the gui (dialog) in the gui, no library the same

   synchronized (Application.getEventLock()) {
                    UiEngine ui = Ui.getUiEngine();
                    Dialog screen = new Dialog(Dialog.D_OK, messageValue, Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),
                            Manager.VERTICAL_SCROLL);
                    ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
                }

It works very well and I'm slightly change and try like thisI

               synchronized (Application.getEventLock()) {
                    System.out.println("\n\n::::::::::::::::Application.getEventLock() ::::::::::\n\n");
                        UiEngine ui = Ui.getUiEngine();
                        Dialog screen = new Dialog(Dialog.D_OK_CANCEL,"Launch"+ PushApplication.pushInstance.pushConfiguration.getAppName() +"Application:"+ messageValue, Dialog.OK, PushApplication.pushInstance.pushConfiguration.getDialogIcon(),Manager.VERTICAL_SCROLL);
                        if(screen.doModal()==Dialog.OK){
                            System.out.println("\n\n::::::::::::::::Dialog Ok::::::::::\n\n");
                            System.out.println("dialog Ok");
                            launchApplication();
                        }else{
                            System.out.println("Cancel Application>>>>>");
                        }
                       ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
                }

I'm getting errror describing that it cannot be pushed no gui thread. So, how can I ge entries dialog box of graphic application not?

Concerning

Rakesh Shankar.P

UiEngine ui = Ui.getUiEngine();
Dialog dialog = new Dialog(Dialog.D_YES_NO);
ui.pushGlobalScreen(dialog, 1, UiEngine.GLOBAL_MODAL);
int result = dialog.getSelectedIndex();

It does not test, but something like this should work.

If you use GLOBAL_MODAL blocks pushGlobalScreen, it returns after the screen was rejected, then you can read the selected value.

Tags: BlackBerry Developers

Similar Questions

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • How to access the data of all users of a page?

    Hi all, I'm new to APEX and have a query.

    I have installed APEX on my local machine, create a workspace and added a few users to roles.

    I'm creating an application, similar to a library application, where I have a table that stores information of books (BOOK_ID, BOOK_NAME, etc.). I would like to create another BOOK_USER table with two columns BOOK_ID and USER_ID. BOOK_ID refers to the BOOKS table and I want to USER_ID to refer to the table that stores the information of the users of the workspace I use. Data entry would be a page that has two LOVs, one for the name of book (using BOOK_ID as value) and another for the user name (USER_ID, or another field APEX uses to store the ID of the user). I can do in APEX? I found ways to access and authenticate a user to a page, but how to get the data of all users in the workspace? In other words, how to get all the usernames in a LOV?

    As I am new to APEX, I would appreciate if anyone can guide me through the steps, or posting links to the tutorial, etc.

    I think you can do this by querying APEX_WORKSPACE_GROUP_USERS.

  • How to monitor the activities of internet users without using third-party software. We have some 60 windows domain user

    Hi all

    We have 60 knots which is connected with the windows domain. How to monitor the activities of internet users via the windows server

    without third-party software.

    Thanks in advance

    Alam

    Hello

    The business support, you can find forums on TechNet, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to get the list of active users in Essbase 6.5.6

    Hi gurus,

    How to get the list of active users in Essbase version 6.5.6

    I can't find any Esscmd list of active users...

    I used the command LISTLOGINS in ESSCMD, but it did not help me...

    pls suggest me an approach to find the list of active users.

    Thanks in advance...

    Hi guru,.

    When you connect to the application, you will find the security option---> connect you will find active use in the ESSBASE.

    If you need the list of users in the use of ESSBASE that recommends essmsh

    go for the race---> essmsh---> login user server use this tribute

    (1) session view all this;

    If you want to export the active users usebelow congratulate.

    2)

    spool to 'D:\suresh.txt ';

    poster session;

  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to change the password for all users in the database

    Hi buddies!

    Could someone tell me how to change the password for all users in the database? I want to set the same password for all users.

    Thank you.

    Nith

    Published by: user645399 on March 1, 2011 14:23

    Write the file spooling
    as

    Make sure that all profiles has password_verify_function with a NULL value

    then

    Select 'edit user' | username: ' identified by ;' from dba_users;

    you will get the output... you just run.

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • Assist in the design of a user interface

    Good, everyone; I read the tutorial to develop User Interfaces, but I still have problems with ISU user interface design more advanced (such as buttons with images). I want to develop for more than a simple OS 5.0 devices, so I don't want to use the new utilities. Can someone give me some links to tutorials or examples with more advanced user interfaces?

    How - to implement advanced buttons, fields and managers
    Article number: DB-00796
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • How to call the library classes threw xml

    In my flash library has "MC."

    var XML = < m c = 'MC' > < / m >

    How to call MC class threw xml.

    It's a little cryptic, but I think you mean like this:

    import flash.utils.getDefinitionByName;
    import flash.display.MovieClip;
    
    var xml:XML = ;
    
    var classRef:Class = getDefinitionByName(xml.@c) as Class;
    var movieclip:MovieClip = new classRef() as MovieClip;
    addChild(movieclip);
    

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

Maybe you are looking for

  • I want it email thunderbird remain open / open without a password or / or use a new password.

    Now, I have to use a password every time I open it.

  • T510 540 m

    For $150. This can be legitimate even a laptop? Going to use for general use. Navigation, a lot of typing, listen to CD after their RIP to HD. Will download the 8 GB RAM and swap the HD for one SSD. It has Windows 7 and is a 1st gen i5. I could wait

  • Age of Mythology: Golden Edition - lost CD drive #2

    I lost my CD drive n ° 2 for this game, I still have the disc CD #1 and I still have the product key, is there a way I can download the game? Because the stores no longer sell them where I live.

  • Impossible to update Windows - error Code 0 x 80070641

    original title: Windows Update not possible My computer runs windows 2003 Professional with Office 2003 is installed. For about a month now, could not update Windows or Office with the error code given in 0 x 80070641. Have checked the MS site and th

  • Mother dead CPU - windows OEM card 7

    Hello My motherboard and processor just died. Now unfortunately the same motherboard and processor is no longer available.  I found one with the same socket and chips, and well, just by ASUS insteado of MS I.  Everything else is the same. I talked to