close a popupscreen created by listener

Hi, here is my code. Is it possible to close the popupscreen?

SystemListener systemlisten = new SystemListener() {
      public void powerOff() {
                UiApplication.getUiApplication().pushGlobalScreen(new popScreen(), 1,GLOBAL_SHOW_LOWER );
            }
      public void powerUp() {
                //I wanna close popScreen here.
            }

I know that we can close a popupscreen via UiApplication.getUiApplication () .popScreen (screen), but here how I get the anti-pop screen?

Any suggestion? Otherwise I hv to change for pushscreen.

Bika idea will not work, global screens cannot be recovered in this way.

It should be possible to store a reference to the form in your listener.

Tags: BlackBerry Developers

Similar Questions

  • Close Internet Explorer creates two elements of rundll32.exe * 32 on the list of the task manager that trigger the physical memory to 90-100%

    Close Internet Explorer creates two elements of rundll32.exe * 32 on the list of the task manager that trigger the physical memory to 90-100%

    You have IE set to 'delete browsing history leaving? "  Rundll32 (with a command line incorporating something in the sense of a call to a function ClearMyTracksByProcess in inetcpl.cpl) is generated to perform this action.

  • How to close a PopupScreen

    Hi, I'm a newbie here.

    I have 1 button on my PopupScreen.I want to click it then to do sth.

    To maintain the display, I use pushGlobalScreen as below:

    UiApplication.getUiApplication().pushGlobalScreen(new pScreen(), 1,true);
    

    then:

    final class pScreen extends PopupScreen implements TrackwheelListener {
    
       public pScreen()
       {
           super(new VerticalFieldManager(),Field.FOCUSABLE);
           ButtonField myButton = new ButtonField("Yes",ButtonField.CONSUME_CLICK | DrawStyle.HCENTER|ButtonField.FIELD_HCENTER);
           add(myButton);
           class addlistener implements FieldChangeListener {
                public void fieldChanged(Field field, int context) {
    //     pScreen.this.close();
    //     UiApplication.getUiApplication().popScreen(pScreen.this);
                 }
             }
             myButton.setChangeListener(new addlistener());
    

    I don't know why I can't use close or anti-pop here to close PopupScreen.

    I saw how - to protect the BlackBerry applications with a password screen.

    And it works on my netbeans and also cannot close the PopupScreen when I press on enter or escape...

    Any suggestion will be appreciated.

    Hello

    You have used an obsolete function so close() method does not work.

    Do not use after the function (what you use now)

    pushGlobalScreen (Screen , priority int, boolean inputRequired)
              Obsolete. Use pushGlobalScreen (int, int

    Use the following function:

    pushGlobalScreen (Screen , priority of the int, int flags)
    Push a global screen.

    I think that the problem is resolved. So resolute and then mark as a solution please...

  • Not able to create a listener

    Hey all,.

    you have the following on a server problem:

    Installed to the 11G database. Now, I want to create a listener but on the last line ("you want to configure another auditor") he spends nothing when I click on 'pass '.

    I get no error message.

    What can I do? (server restart does not help)

    Thank you in advance.

    If you use windows?

    do you the listener to create manually and start it, all is well. ?

    have you tried lsnrctl start

    If the listener started, check if the service created

  • How to create the listener.ora file

    Hi all

    My emca start dbconsole... successful because I do not have in network/admin listener.ora. My interlocutor only runs on the default config

    I can't run gui netca bacause I connect only remotely using PuTTY.

    I want to run in silent mode netca to create the listener.ora file... can you give me response.file of the sample for netca?


    Thank you

    Published by: yxes2013 on 3.5.2013 04:14

    I meet emca error before and it is just resolved when I created lisnter.ora, so I want to try it.

    I doubt that listener.ora was the cause.

    Although experience is a better teacher.

    No, trying to find the cause of a problem is a better teacher, just try things at random - it's a good way to teach you things like "emctl start dbconsole does not work without a listener.ora", which is clearly false.

    Once start emca

    The command is not 'emca,' maybe that's your problem.

    We don't know, because you have not copied/pasted something here, including the error message

  • Cannot close the PopupScreen

    I have a PopupScreen, NHCustomPopupScreen.

    When a function is called, I display this screen:

    NGCustomPopupScreen ngcps = new NGCustomPopupScreen();
    UiApplication.getUiApplication () .pushScreen (ngcps);

    After the function finishes its work, I want to close the NGCustomPopupScreen.  I'm sure that this is my problem, but I'm not sure what to change here.

    UiApplication.getUiApplication () .popScreen (UiApplication.getUiApplication () .getActiveScreen ());

    The NGCustomPopupScreen does not close.  Everything continues to operate.  Looks like I'm missing something small on this one.

    Hey Champ,.

    the problem could be that the other screen is active at the moment.

    You can try adding the next checkig as:

    Screen = UiApplication.getUiApplication () .getActiveScreen ();

    If (NHCustomPopupScreen instanceof screen)
    {
    UiApplication.getUiApplication () .popScreen (screen);
    }

    Also if you have the screen reference I would more simple:

    NGCustomPopupScreen ngcps = new NGCustomPopupScreen();

    .....

    UiApplication.getUiApplication () .popScreen (ngcps);

    And also please wrap all the UI code inside the following construction (you will find more in the UI Developer's guide):

    Synchronize (UiApplication.getUiApplication (.getEventLock))

    {}

  • How to create the listener in 11g RAC on windows 2008 server

    Dear all,

    I also worked on win 2003 and linux 4, 5. I installed oracle RAC on windows and linux.

    now, I have installed oracle on windows 2008 server.than RAC11gR1 installed oracle software. now, I want to create listener db_home i am facing problem.
    I m leaving db_home netca. After the insturction when I finished, start the process, but in the Middle shows the listener on node1 and node2 cannot be created.

    GUID me please how I willl be able to creat it.

    2nd fist how to create an instance of the DSO on RAC11gR1. is it need to install saparate House like 10g for it or I can create 11 g Software House.

    Thank you
    Shir khan

    http://www.Oracle.com/pls/db111/homepage?remark=Tahiti

  • create a listener for a custom class?

    I have a custom class that loads a couple of XMLs. I create an instance of this class in another class and I need to know when it is done so that I can then call a function of loading in this class of parent.

    How can I do this?

    pls know me if I need to explain differently.

    Thank you!

    When you create your instance of the class:

    ///////////////////////

    classinstance.addEventListener ("xmlloadingcomplete", f);

    private void f(e:Event):void {}

    //

    }

    ////////////////////

    and in your xml, class loading, loading is complete:

    this.dispatchEvent (new Event ("xmlloadingcomplete"));

  • creating a listener

    I hope someone can enlighten us...

    I have a mc that contains 4 movies of void, each sub movie can be played by clicking on a button to start the animation of film clips. What I'm trying to do is to check to see if a) has all the buttons were clicked or b) that all the films void animations are complete at this time here I woul like to call a function.

    Anyone have an idea how I can achieve this?

    Thank you

    :

  • How can I create an event listener for the change of variable shared or similar?

    Hello

    I have a 'big' 6 devices communicating measurement system via the TCP protocol. The system is designed to use REST (the representative State transfer) with JSON (JavaScript object notation).

    Now, I need to add labview program to this environment. I've implemented a solution to 'work' with the help of this forum. Thank you for this! Now, I need to do better (currently no timestamps, large delays, etc.).

    I currently have a web service deployed using http-get as input. My web service .vi is just passing the web entrance to shared variables that are then questioned in real measurement program. Reason is that when I put the measurement program directly to the web service, it does not (something about rights and dependencies). Measurement program includes one third of the owners (Instron) drivers. Also I would not direct access via the network to our mechanical testing device potentially dangerous.

    Now, I want to change the message from the web services .vi commensurate .vi. Currently I have a loop of 10ms to query for changes in the shared variable. Is there a better way to do this? I thought create a listener to the shared variable change events.

    In addition, if you have any ideas (preferably, working code example) how to make the interface between labview and TCP-JSON I would really appreciate it.

    BR,

    Juha

    Currently in LabVIEW, the only way to create an event listener or event NSV is to use the DSC toolkit.  Most of the time the DSC is a very expensive tool that simply encapsulates the functionality that is built into the motor of the PSP and OAS and which is accessible to anyone who can program in LabWindows/CVI.

    http://zone.NI.com/reference/en-XX/help/370051P-01/CVI/libref/cvicnvcreatesubscriber/

    If you want to collaborate, I would like to create a small library of LV that would create a base SV events using a vi LV reminder or possibly passing return user LV event which is how works the DSC toolkit.  I asked OR several times to explain how do this and they're very tight discreet about it.  I guess that they do not want to give users LV less reason to buy the DSC.

  • close PopupScreen problem

    Hello

    I have a PopupScreen which is called from an EditField inside of a screen.

    When I close the PopupScreen using the ESC key and the following code, the screen gets closed as well. I want only the PopupScreen to close, not the screen. Any ideas on what could be the problem?

    public boolean keyDown(int keycode, int time)
        {
        if (Keypad.key(keycode) == Keypad.KEY_ESCAPE)
            {
            close();
            return true;
            }
        else if (Keypad.key(keycode) == Keypad.KEY_ENTER)
            {
            AcceptEntry();
            return true;                }
        return super.keyDown(keycode, time);
        }
    

    Thank you

    Override keyChar rather than keyDown.

  • creation of listener for the manually created database

    Hi all

    Oracle 11 g 2

    RHEL 5

    I have a server with a single database that is installed with the default listener listen to 1521.

    Now, I'll create another data base to help create database statement. I want to have a separate listener called listener2 on port 1522. How the database manually created to listen to listerner2...

    Kind regards

    1 / created the database manually

    Using SQLPLUS > CREATE DATABASE...

    For additional info check documentation for version you use.

    2 / create a new listener

    USE NETCA or UPDATE YOUR LISTENER. ORA or use srvctl

    For additional info check documentation for version you use.

    3 / update the database using the parameter local_listener with the new name of listening port?

    Using sqlplus > alter system set local_listener = scope = <> = sid<>

    For additional info check documentation for version you use.

  • How to create a service listening for 10g in Win2k?

    Hello

    I accidentally deleted the service listening for 10g in our win2k server using the wizard netconfig.
    I want to create a new, but I can't do the net assistant is just hangging forever.

    I can still start the listener to prompt back and set it up manually using the manual editing of LISTENER.ora

    How to create a service back order please. Or do I need to create a?


    Thank you very much

    Edited by: KinsaKaUy? on June 30, 2011 23:07

    KinsaKaUy? wrote:
    Hello

    I accidentally deleted the service listening for 10g in our win2k server using the wizard netconfig.
    I want to create a new, but I can't do the net assistant is just hangging forever.

    I can still start the listener to prompt back and set it up manually using the manual editing of LISTENER.ora

    How to create a service back order please. Or do I need to create a?

    Thank you very much

    Edited by: KinsaKaUy? on June 30, 2011 23:07

    If you create a listener using NETCA, service will be created.

  • Create Bluetooth earpiece function only works in some cases

    The function create a listener Bluetooth generates an ID of listener that lets wait for an incoming connection of Bluetooth. Because every time that you run a VI that contains this function, it must create a new listener ID, otherwise the block following that wait on the listener will crash.

    I found that for the listener to create function work properly the entry that the Service Description must be connected to a control element. If its connected to a constant run only once, then creating a new id of the listener, but she keep this id indefinitely. In this case, you will need to close all the screws and reopen to be able to run the function again.

    (See attached VI for an example.)

    Can someone tell me, why is this? Is there a difference in the compilation/execution screw using controls instead of constants?

    Thank you!

    I could reproduce the error. I presented a report to R & D. I'll let you know when I get a response from them.

    For now, you can try using a control instead of a constant and make it invisible in the façade.

    Kind regards

    Georg

  • How to create a dialog box custom?

    Hi guys,.

    I would need to create a custom dialog which allows the user to enter text and check a box. Is this possible? I guess I need to extend the class dialogue... is goal an example that shows how to add some input fields, in addition to simple things such as changing the background color?

    Thank you.

    You're pushing the display of password and then pushing your main screen above it. This is why you do not.

    Push the screen first, and then push the screen of your password. Then when you close the password screen, the screen of your sector will come to the top of the stack.

    Tap the screen to pass on top of the main screen.

    You close the PopupScreen within the PopupScreeen class, when you are finished. Call close() in popupscreen class.

    If the password is not good, then run System.exit (0);

Maybe you are looking for