workaround for while key-listener in private closed

Hi all

My needs: I invoke the camera of my application. Once the user completes taking a snap and returned to my application using the back button, I have to show the path of the image in a text field. To do this, while the user is in the camera app, I have listener for the key event of the Back button.

I went through the forums and have learned that it is not possible to use KeyListener while in the camera app. Yes, is there a work around for this? I tried the fileJournal listener. But I'm in a position where I have to know when the user goes back to my request. Thank you for your valuable time.

You must override either onExposed() in your monitor or your manager or activate() in your Application. They are called in many other cases, then you'll want to remember why your screen has obscured / reduced first application.

Edit: Oh and welcome to the forums!

Tags: BlackBerry Developers

Similar Questions

  • What is the workaround for the Smart keyboard ESC key?

    What is the workaround for the Smart keyboard ESC key?

    For what purposes? In any application, or even the home screen, hold down the "Command" key to view the list of keyboard shortcuts that work specifically with this app.

    Thank you for using communities of support from Apple!

    Ryan

    iPad Keyboard Pro & Smart, iOS 9.2

  • SMS for outgoing SMS listener throws IOException immediately after the open call

    I had already created a class for sending SMS messages which worked perfectly until I added the listener. When the listener is added as soon as I start the thread throws an IOException exception who am I hurting? The only thing I can think is some kind of wire problem, please help.

    Here's the SMS & Listener class:

    private static final class SmsMessage    {        private String _address;        private String _msg;
    
            public SmsMessage(String address, String msg)        {            _address = address;            _msg = msg;        }
    
            public Message toMessage(MessageConnection mc)        {            TextMessage m = (TextMessage)mc.newMessage(MessageConnection.TEXT_MESSAGE,"sms://" + _address);            m.setPayloadText(_msg);            return m;        }    } // SmsMessage
    
       private final class SendThread extends Thread    {        private static final int TIMEOUT = 500; // ms        private Vector _msgs = new Vector(10); // Queue of 10        private volatile boolean _start = false;
    
            // queue requests        public synchronized void send(String address, String msg)        {            _start = true;            _msgs.addElement(new SmsMessage(address, msg));        }
    
            public synchronized void stop()        {            _stop = true;            try {                if ( _mc != null ){                    _mc.close();                }            } // catch (IOException e ) {                catch (Throwable t) {                t.printStackTrace();                System.exit(0);            }
    
            }
    
            public void run()        {            try {                //closed by the stop() method                _mc = (MessageConnection)Connector.open("sms://");
    
                    if (_mc != null)                {                    // set a listener to trap outgoing sms messages                    _mc.setMessageListener(new OutboundSMSListener());                }                for(;;)                {                    while( !_start && !_stop)                    {                        try {                            sleep(TIMEOUT);                        } // catch (InterruptedException e) {                            catch (Throwable t) {                                t.printStackTrace();                                System.exit(0);                            }                    }                    if ( _stop )                    {                        return;                    }
    
                        while(true)                    {                        try {                            SmsMessage sms = null;                            synchronized (this)                            {                                if ( !_msgs.isEmpty() )                                {                                    sms = (SmsMessage)_msgs.firstElement();                                    // take it out of the queue once we sent it                                    _msgs.removeElement(sms);                                }                                else                                {                                    _start = false;                                    break;                                }                            }
    
                                _mc.send(sms.toMessage(_mc));
    
                            } // catch (IOException e) {                            catch (Throwable t) {                                t.printStackTrace();                                System.exit(0);                        }                    }                }            } // catch (IOException e)              catch (Throwable t) {                t.printStackTrace();                System.exit(0);              }        }    } // SendThread
    
        private static final class OutboundSMSListener implements OutboundMessageListener    {        public void notifyIncomingMessage(MessageConnection messageconnection)        {            // we don't care about incoming sms messages right now        }
    
            public void notifyOutgoingMessage(Message message)        {            Dialog.alert("Detected An Outgoing SMS Event");        }    }
    

    Thank you. Makes sense.

  • No solution workaround for links to KB which do not work?

    Hello

    Is there no workaround for links to the knowledge base not work not?

    It has been a while since I tried to use the support site. It is changed so that I'm completely lost. I can't find the Knowledge Base articles, and when I find a link that should take me to a KB article I get a 404 error.

    Link to example

    https://support.Apple.com/en-us/HT203202

    Thank you.

    How you try to use the support site? What is your workflow?

  • Error blue screen STOP: 0x0000007e. I powercycled the sys, unable to choose for sure (keys do not work when you try to select a mode) sys is trying just to go back to the blue screen. Help, please

    STOP: 0x0000007e (0xc000001d, ox8537008 0xba4c3508 0xba4c3204) and the system would not come to the top.

    Error blue screen STOP: 0x0000007e. I powercycled the sys, unable to choose for sure (keys do not work when you try to select a mode) sys is trying just to go back to the blue screen. Help, please

    Symptoms: Booted computer, loaded the raid drivers and showed at the start screen XP for half a second then to BSOD with a Stop error Code 0x0000007E - see also a lot of users (0xC0000001D, 0 x-, etc.) as well.

    Solution:

    1 boot from your Windows XP CD and start the recovery console. You may need to press F6 while RC loads in order to load the SATA drivers. you will have a prompt c:\WINDOWS to the console.

    2. type: CD $NtUninstallKB977165$ \spuninst (it's the update, I had to uninstall to get out of the boot loop, other updates can be uninstalled by changing the name of the directory to $NtUninstallKBCODE$, where KBCODE is the code KB)

    3. type: BATCH spuninst.txt

    4. type: exit

    Don't forget to configure your system to boot from the HD before resuming. I hope this helps. Saved me a lot of hassle today.

    -Tom Steele
    http://www.hawkandtom.com Tom Steele

  • liaison work not when you use EL for Hashtable keys

    Hi all

    Here's the scenario: I have an iteration of the external, in this iterator, a table and a PanelGroupLayout are generated; the PanelGroupLayout displayed or not displayed depends on a property in backing bean which is a hash table and touch which is based on the attribute of the external iterator, so access to the current item in the hash through table

    the key, he has incorporated EL; and inside the table, there are 2 radio buttons and each is bound to an instance of CoreSelectBooleanRadio using a hash table and key in this table is based on the same attribute of the external iterator (so same EL), the segment code looks like this:

    < tr:iterator var = "item" varStatus = "status" value = "#{bk_myBackingBean.subQuestions}" lines = '0' > ' "

    < tr:panelBox > <!-block test to check how to access the hastable value is OK->

    < tr:outputText value = "#{item.questionNumber}" / >

    < tr:outputText value = "#{bk_myBackingBean.dependent.medicalData.displayQ2Answers [item.questionNumber]}" / > <! - it's a good way to get the hastable value - >

    < / tr:panelBox >

    < trh:tableLayout >

    < trh:rowLayout >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 10px 0 10px 50px;  styleClass = "alignleft" >

    < label > < tr:outputText value = "#{item.questionLetter} #{item.description}" / > < / label >

    < / trh:cellFormat >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 0 0 10px 50px" styleClass = "alignleft" >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:selectBooleanRadio id = "Q2No" group = "question2 #{status.index}" text = "" autoSubmit = "true" inlineStyle = "border-width: 0px; »

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < tr:spacer width = "5px" / >

    < tr:selectBooleanRadio id = "Q2Yes" group = "question2 #{status.index}" text = 'Yes' autoSubmit = "true" inlineStyle = "border-width: 0px; »

    onclick = "removedRequiredError (this.ID)" "

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < / tr:panelGroupLayout >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:outputLabel id = "Q2Error" value = "#{bk_myBackingBean.dependent.medicalData.questionErrors [item.questionNumber]}" "

    styleClass = "error" / >

    < / tr:panelGroupLayout >

    < / trh:cellFormat >

    < / trh:rowLayout >

    < / trh:tableLayout >

    "" < tr:panelGroupLayout layout = "default" inlineStyle = "#{bk_myBackingBean. dependent.medicalData.displayQ2Answers [item.questionNumber]}".

    I checked the value of #{item.questionNumber} is just out of view it in the interface user as described above and also I tried to exit with a value in the hashtable and it is successfully recover and displayed in the user interface. (Those who are in the < tr:panelBox > block above) and the hastable displayQ2Answers is of type < String, String >. So far so good, but when I tried to link in what follows the radios and the PanelGroupLayout, he throws NullPointerException. But if I tried to link explicitly radio to an item in the hash table instead to use the key "" EL:

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2NoRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos ['q2a']} '

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2YesRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos ['q2a']} '

    then the page is rendered with success.

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type < String, String >, I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of < String, CoreSelectBooleanRadio > or < String , CorePanelGroupLayout > (this is not shown in the above code segment), the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. so apparently not caused by initialization

    . What follows is an overview of the data model, this is how I initialize the option button:

    public class MedicalInfo {}

    == getters and setters are defined but not shown here

    / / theare hash tables used to be linked to radio buttons

    Hashtable < String, CoreSelectBooleanRadio > q2NoRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    Hashtable < String, CoreSelectBooleanRadio > q2YesRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    / / these are the items that are stored in above hash for the actuall link tables

    private CoreSelectBooleanRadio q2aNoRdo = new CoreSelectBooleanRadio();

    private CoreSelectBooleanRadio q2aYesRdo = new CoreSelectBooleanRadio();

    and in the constructor, except for the hash for the binding tables:

    public MedicalInfo() {}

    ...

    q2NoRdos.put ("q2a", q2aNoRdo);

    q2YesRdos.put ("q2a", q2aYesRdo);

    ...

    }

    Where could I have missed or done wrong? Any hint is appreciated!

    Thank you

    Shawn

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type of , I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of or (this is not shown in the above code segment) the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. It is not caused by the initialization

    Well, #{number} is not resolved in the same phase as the 'binding' property ("compulsory" is resolved in the phase of restore view and variable "var" is resolved in the rendering phase).

    Dario

  • How to set the pressure necessary for the keys on the keyboard? I adjusted it 2 years when I had my Macbook Air, but I forgot how I did it. In my opinion, only a touch of F has been used.

    How to address the need to pressure for keys? I've adjusted it 2 years ago when I got my Macbook, but I forgot how. In my opinion, only a touch of F has been used.

    I don't know what you are referring. You can't 'adjust the need to pressure for the keys. The keyboard is what it is. The key must be pressed far enough for electric contact in key switches. The keys are not adjustable in this way.

  • Crashing - workaround for a synchronization solution?

    My iTunes crashes - the problem * may * be my computer.  I've just updated iTunes, no apparent difference.

    I have a new computer, but in the meantime, I would like to synchronize the new things I just downloaded.

    Is it possible to make a synchronization between an iPhone and a Windows computer without using iTunes?

    Thank you!

    MediaMonkey can add content to an iDevice for you, but you really should sort out the problems with iTunes. If you do not already have a backup Act now before the machine fails on you. See Save your iTunes for Windows with SyncToy library.

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.

    More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.

    Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.

    If you have tried the suggestions above without success, then another option is to go back to the previous version of iTunes that has worked for you. See the roll back tips to installers of iTunes. Roll back of 12.3.3 will be to restore the pre-upgrade library in the previous iTunes libraries folder.

    TT2

  • Satellite L300 - Vista asks me for a key

    I recently bought a Satellite L300-1CU with Windows Vista already installed.

    When I start the programs that they ask me to enter a key, when I entered the 25-character key found on the Windows sticker at the bottom of the computor as computor says it's the wrong key.

    I'm doing something wrong? If not, where can I get the right key of.

    I doubt that Vista asks for a key. I think you mean Microsoft Office, right?

    Well, the button on the underside is for Vista preinstalled, NO Office but normally you can see from the thumbnail (Windows Vista product key)

    On Toshiba laptops there s only one Office pre-installed trial version and if you want the version complete, you must pay for it.

  • On the display screen for shortcut keys and locking touchpad issues

    Hello, using hp g62-140us, win7 Ultimate 64-bit.

    I got the OEM win7 home but now I have reinstalled windows and I use win7 ultimate.

    with the OEM version, I got the screen works for volume control, for example, but it has now disappeared. What should I do to bring it back?

    And my other problem is to lock my touchpad I can double click in the upper left corner of the touch pad. but I can't unlock it in the same way, even if I could before. What is wrong with him? (now what I do is to lock the computer and then go back to my user)

    Thank you

    Here are the tweak reg... for a key side keys (this is called)

    Internet key:  HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\7 'Association '=' http'; Change the value of the string "http"

    Calculator key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18 'ShellExecute "=" calc.exe "; Change the value of the string "calc.exe"

    Key by e-mail:  HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\7 'Association '=' mailto'; Change the string "mailto" value

    Cyberlink PowerDVD/Mediasmart key: HKLM\SYSTEM\ControlSet001\Control\MobilePc\HotStartButtons\2 "Application" = "file C:\Program (x 86) \Cyberlink\PowerDVD9\PowerDVD9.exe"; Changethe string value "C:\Program file (x 86) \Cyberlink\PowerDVD9\PowerDVD9.exe"

    On the touchpad, I guess, we have 15.0.7.0 version... I suggest you uninstall it drawn from the program and features and install the older driver 14.0.13.1 by http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-80040-1&lc=en&dlc=en&cc=us&os=4062&sw_lang=&product=4164680 and check...

  • I installed the free age of empires online play and its request for a key code? Why is it if it's free?

    Download the age of play free online empires site microsoft Web and its demand for a key code? How is it so if it's free?

    Hi Joe_2011,

    I suggest that ask you this question on the forum of the Age of Empires. Here's the direct link:

    http://Forum.AgeCommunity.com/

    hope this helps

    B Eddie

  • Mr President, I have vista preinstalled and I formatted now it asks for product key. What can I do now?

    Mr President, I have vista preinstalled and I formatted now it asks for product key. What can I do now?

    The sticker that contains the product key is turned pale as I bought it 3 years ago and I have not written the key anywhere elsewhere.
    Please help me.
    I need the key to activate my windows vista.

    Hello

    If you use the manufacturer or their recovery disk recovery partition should not be required to have an entry of product key when reinstalling back to factory settings

    We cannot help you find a now non-existent product key

    I suggest you contact the manufacturer of the computer

  • How to get windows 7 Professional operating for existing key?

    How to get windows 7 Professional operating system software for existing key

    For 5 years, Microsoft made it fairly easy for users of the Windows 7 operating system to get reinstall media. If you have lost your support disc or installation retail collection; either it has been damaged or defective; You can download a copy of the edition that you have licensed from a membership site called Digital River. More recently, Microsoft ended the availability to reinstall media that you can download as a. File ISO in Digital River, which is a digital reproduction of an optical disc.

    It was particularly convenient for people who could not easily get the manufacturer's recovery media, did not want to pay the fees required to get or preferred a clean configuration without the software packaged manufacturers or even a recovery partition does not work. It's easy to use, all you had to do was reinstall and reactivate using the product key located on the certificate of authenticity and download all the drivers on the manufacturers website.

    Given that this option is no longer available, what are your options? See the article for more details:

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

  • Still waiting for signature keys

    Hello.

    I asked for signature keys twice now, yesterday and the day prior to that. I have made sure the e-mail address is in the list of shippers.

    I received the e-mail of Confirmation of order both times, but the keys do not follow. There is currently a problem with them last more than two hours mentioned?

    Unfortunately, I do Bluetooth development, so I can't shoot with simulators...

    What is a good email or contact to approach with this?

    Thank you very much

    Phil

    You can send an e-mail [email protected] to this topic

  • Workaround for VARCHAR2 (32767) limit?

    Hello

    I have a stored proc that declares a string as VARCHAR2 (32767), I generate a few htmlcode and post it. It's my data has grown too big and now I get:

    ORA-06502: PL/SQL: digital or value error: character string buffer too small


    Is there a workaround for which implies not if my string into pieces?


    Thank you

    Use instead of VARCHAR2, CLOB CLOB supports the huge chain sizes (several gigabytes).

    Note, if you build your code html to the top with the literal string ("this is a string literal"), you can't go beyond 32 k for a given literal.  You can concatenate several pieces of k 32 well

    For example...

    vMyClob: = 'This is a string of 32 k...' » || "It's another channel 32 k..."

Maybe you are looking for