Cannot lock the focus

Hello

I'm developing an application that uses the camera on a Torch 9810 using SDK 7.1.  I'm trying to use the

EnhancedFocusControl set and lock the focus.  My code is below:

public CameraImageCapture()
    {
        try
        {
            _camera = javax.microedition.media.Manager.createPlayer("capture://video?encoding=jpeg&width=1024&height=768");
            _camera.realize();
            _cameracontrol = (VideoControl) _camera.getControl("VideoControl");
            if (_cameracontrol != null)
            {
                Field videoField = (Field) _cameracontrol.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
                _cameracontrol.setDisplayFullScreen(true);
                _cameracontrol.setVisible(true);
                _camera.start();
                _efc = (EnhancedFocusControl) _camera.getControl("net.rim.device.api.amms.control.camera.EnhancedFocusControl");
                if (_efc != null)
                {
                    if (_efc.isFocusModeSupported(EnhancedFocusControl.FOCUS_MODE_CONTINUOUS)) {
                        _efc.setFocusMode(EnhancedFocusControl.FOCUS_MODE_CONTINUOUS);
                    }
                    try
                    {
                    _efc.startAutoFocus();
                    }
                    catch (Exception e1)
                    {
                        Dialog.alert(e1.toString());
                    }
                }
                if(videoField != null)
                {
                    add(videoField);
                }
            }
        }
        catch(Exception e)
        {
            Dialog.alert(e.toString());
        }
    }

When I try to call EnhancedFocusControl.startAutoFocus I get the following error:

javax.microedition.media.MediaException: cannot lock the focus.   I noticed a few others have had this problem using the example program, but received no response.  Is there a solution for this problem?

I found that if I moved the EnhancedFocus control in the invokeAction function, she was able to set the focus.

Tags: BlackBerry Developers

Similar Questions

  • Error code 70879003: cannot lock the memory segment.

    Hi guys,.

    I am trying to build a program runs on a windows CE of touch screen system and tested the majority of individual components to see that they work on the system and they have all been successful, however when I build and try to run the entire program, I am presented with a popup box saying:

    App failed. Error code 70897003. Cannot lock the memory segment.

    The program then stops completely. I tried to search the web and the forums, but this specific error code is not mentioned anywhere, and the information that I have known impossible to segment errors memory locking has not been very useful and how to solve this problem.

    Any suggestion or help would be very appreciated.

    OK, so I solved the problem myself, it turns out that's not at all a problem of backend, in my front panel I accidentally overlapped 2 resulting in a being placed inside the other tab controls. Move them so they are not stacked and the problem is solved.

    So moral of the story if someone gets this error in the future, check your tab controls are not overlapping / stacked.

  • Cannot lock the file.

    Hola, UN curioso caso a worm what tal:

    -A host ESX (4.1 U1) ha perdido discos in cabina (to han roto!) ) y una VM is ha been catatonica.

    -El ESX is ha gradient y al final be ha tenid o apagar el porque ESX VM without is podia thank ordenadamente.

    -El ESX ahora fuera del cluster, works muy lento. Solo goes well if the quitamos las las HBA percentage.

    -The VM catatonica no you can arrancarse in another ESX debido a message that says the following:

    An error was received from the ESX host turning on VM PEPITO.

    Reason: Cannot lock the file.

    Cannot open disk ' / vmfs/volumes/4f4f6437-aa67cc54-19c5-e41f131ff1fa/PEPITO/PEPITO.vmdk' or one of the snapshot disks it depends on.

    Tampoco is Registrar can con el host auto problemas con y sin percentage, how identify el fichero blocked?

    An importance reto.

    Gracias!

    Gracias. Finalmente seems that no habia any fichero blocked (tras verificacion practica mediante el Detección of caudal VMware KB). The problem is fixed the siguiente manera:

    -Desregistrando the VM

    -Creando una nueva identicas benefits VM.

    -Los Asignando discos esta nueva VM.

    Saludos!

  • While applying Opatch we got a cannot lock the Central inventory

    Hello



    I just installed new software Opatch, when I'm checking the last list applied patch, I get the error message



    < p >
    lsinventory opatch

    Citing O Patch 10.2 .0.4.4
    < /p >
    < p >
    Setup Oracle interim Patch version 10.2.0.4.4

    Copyright (c) 2007, Oracle Corporation. All rights reserved.
    < /p >
    < p >


    Oracle homepage: / xxxx/app/oracle/product/xxxxxxx

    Inventory Center: / dev/null

    from: /var/opt/oracle/oraInst.loc

    OPatch version: 10.2.0.4.4

    YES version: 10.2.0.3.0

    YES location: / xxx/app/oracle/product/xxxxx/Yes

    Location of the log file: /xxxx/app/oracle/product/xxxxx/cfgtoollogs/opatch/opatch2008-10-29_10-38-52AM.log
    < /p >
    < p >
    Cannot lock the Central inventory. OPatch will attempt to lock again.

    Do you want? y

    There

    The user responded with: Y

    OPatch will sleep for a few seconds, before re - try to get the lock...
    < /p >
    < p >
    Cannot lock the Central inventory. OPatch will attempt to lock again.

    Do you want? y

    n

    The user responded with: N

    Cannot lock the Central inventory. Stop trying by the request of the user?

    LsInventorySession failed: cannot lock the Central inventory. Stop trying by the request of the user?
    < /p >
    < p >
    OPatch failed with the error code 73

    Rocky: UPG11: / xxxx/app/oracle/product/xxxxxx/OPatch - & gt; /var/opt/Oracle/oraInst.loc more

    inventory_loc = / dev/null



    can you get it one please let me know the cause of this.
    < /p >

    Published by: appsguyflorence on October 29, 2008 21:17

    Please refer to the Note: 73123.1 - Universal Installer / tools OPatch are suspended and / or fail to install
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=73123.1

  • Cannot lock the entity

    Hi all

    I'm having a problem with the locking of the data.

    (a) received error message: "cannot complete this action because calculations, translations or collections should be made."

    (b) I was able to lock the entity in the previous years except for January 2011.

    (c) I consolidated with application data and calculation forced on the entity, but that did not help.


    Someone else ran into similar issues?

    Thank you
    T.T.

    We encounter this problem from time to time. I don't know what causes it, but to solve that go set to the [None] dimension and for some reason, we find several parent entities that remain have a status of CN. The only way we can get to lock is to do a force on each of these individual parent and the lock then calculate them while we work our way upwards. Not sure if this is your problem but I'd maybe start looking at the different levels of the dimension of value. If anyone has any suggestions on a better way to solve this problem, we would be happy to try them!
    Thank you.

  • Cannot lock the main repository?

    Hello

    I'm learning the MUD in OBIEE, I can't lock the repository when I'm going to merge the changes with the local repository.

    Any help? An error message says "cannot lock lo \\folder\XXX.rpd".


    Thank you...

    Published by: user642877 on October 27, 2010 21:22

    Hello
    If his answer marking and farm wire :-)

    Kind regards
    Srikanth

  • Cannot lock the tag; causes of error and crashed!

    I am running InDesign CS3 and newly installed OSX 10.6.4 on Quad - Core Intel GS5.

    I'm having difficulties with a file of several pages that I created and tag. It produced an error during packaging. And if I continue to package the file for printing (which she doesn't let me do) and then try to open the file newly packaged, InDesign crashes with the following message:

    "Cannot change the items that contain the locked content, or are contained by locked content. If Please unlock or review the content and try again. »

    Here's the curious part: I happened to see one of the tags in the 'Structure' Panel seems to point to content in my paper that does not really exist. In other words, I double click on the tag and a box is highlighted in the document itself; Yet, the box does not highlight or another selection tool, directly. In addition, there is no indication that 'content' is locked, so I am not given the option to unlock the content or the mysterious tag, I would like to remove.

    I've never had a problem like this until recently, leads me to suspect that my new operating system is not talking about the version of InDesign CS3!

    If anyone has encountered this before?

    Is there a work around? Or am I doomed to my very complex filled document and also scrap and rebuild it?

    Any ideas on this would be greatly appreciated!

    Try to stir the contents of your file by exporting as INX and opening that. Sometimes it shake things loose and you are ready to leave.

  • Pages cannot lock the object!

    I've been using pages for a while and for some reason, recently, I can't lock or group objects. It is a reference image. The lock is disabled for some reason any.

    This looks like an operation to exclude it. Select the remains and in the Layout tab, choose Object Placement under stay on the Page. Now, the lock button become available and actually locks the object.

    Pages on OS X 10.11.4 v5.6.1.

  • Cannot lock the ipod shuffle

    My (waterproofed) ipod nano 4th generation has of worked until today, when after loading all the buttons are "locked" - when I turn it on I get the green light for a few seconds and then it flashes orange 3 times.  He plays at a very low volume and none of the keys work.  I tried to reset - no effect and restoring the factory settings nothing works.  I guess that it is a software issue as it was working fine until I rebooted it today.  If anyone has a solution I would be happy to hear about.

    There is a locking button on the gen shuffle function 4.  To lock the keys, press and hold the Play/Pause button for three seconds.  The light flashes three times when it is locked.  To unlock, do the same thing.

    However, if you did a restore on the shuffle using iTunes, it would be completely reset, so it should not matter if the buttons were previously locked.

  • BlackBerry Smartphones cannot lock the keyboard

    I just upgraded my 8520 to 5.0.0.681 and can not find the lock on keyboard anywhere. I used to have assigned it to the left button and it gives me more is this option.

    Can anyone tell me please where to find the keyboard lock please

    Your previous lock icon is now only enabled when you have set a password on the device.

    If you have not set a password on the 85xx you can press on and hold the mute (on the upper part of the unit) to lock the keyboard. Or, you can press and hold down the a button * to lock.

    When you set a password, then your icon will return to the screen and is called Password Lock.

    Also, try this keyboard blocking third-party application.

    http://appworld.BlackBerry.com/WebStore/content/13278

  • AlreadyLockedException: Cannot lock the file, another user holds the lock

    I created the client application to web service using Jdeveloper 11.1.1.7 and deployed on weblogic 10.3.6 on cluster consists of 3 servers. The task of the application is to extract the data from the DB and push application external server permanently. Everything seems fine and works applications. The problem is with some message logs on all three servers.

    I see the following stack of servers:

    oracle.jbo.AlreadyLockedException: Houston-26030: unable to lock the file, another user owns the lock. [[

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1105)

    at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:567)

    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8589)

    at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:6237)

    at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6756)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6943)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3301)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3106)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2108)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2389)

    ........

    It is clearly stated that another process locks the record while the current process tries to lock the record even. Yet once obvious to say that the same application is deployed on three different servers (i.e. on the cluster) and each application tries to do the same task at the same time in each of the three servers with cluster.

    Question: It is healthy to ignore this error? or I have to solve out?

    I also checked this blog (Andrejus Baranovskis Blog: optimistic and pessimistic locking in Oracle ADF BC) he explains the difference between locking type available in the application model (optimistic and pessimistic). Will I change the lock mode in the request form for the client application that is mentioned to be optimistic rather than pessimistic? This will solve the problem? Is it OK to do with the behavior of the application who explained.

    I thought about this a bit more and would not use temporary tables. Because the ADF does not guarantee that a session database is still used by the same am it will be difficult to control.

    You can use a column in the table itself to write, for example, the name server that will manage the data before doing the real work.

    Our you will find further information in the table that allows you to balance the work using this in a query. Sample would be a column id that allows you to select only the tires where the modulo 3 id is equal to 0, 1, or 2. In this way, it would be pointless to write something on the table before proposing the line as each server would see only the lines it is supposed to work.

    Timo

  • Windows backup ends abnormally - cannot lock the ESP partition

    I've been running Windows backup successfully, including by creating an image of the system, a few months, but now it will not create the system image.  It is said that he cannot get a lock on the ESP partition  I spoke to Microsoft Technical Support and disabled all services to start at the start, with the exception of the antivirus, and it worked once, but still doesn't work.  It does not mean that if I stop, anti-virus, or even other services.

    Any ideas?

    Tony Gottlieb

    Hello

    I managed to solve my problem.  The problem was Trusteer Raport endpoint protection IBM System.  I discovered how to stop, (there is a program on the start menu to start and stop it) and then I can stop the service in the background.  I can then run the backup OK.

    Tony Gottlieb

  • Cannot lock the MacBook Pro with Apple Watch

    I do not see in Preferences-> Security & privacy-> system "Allow your Apple Watch unlock your Mac."

    The screen is just as it was before the Sierra.

    MacBook Air 13 "early 2015 - Sierra 10.12/Apple Watch - WatchOS3

    See you soon!

    I, too, am unable to lock my MacBook Pro with my Apple Watch. However I don't see the checkbox "Allow your Apple Watch unlock your Mac.". I checked it but I can not unlock my Mac with my Apple Watch.

  • Cannot lock the account!

    The situation is the following. My father had his iPhone and iPad he removed last week and day, that he took told him to use the search function in the iPhone and we found the final location, that is. It did not lost Mode because he didn't and I wasn't physically there to help him. But a few hours later he couldn't access his Apple ID account anymore (I don't know what happened may be the guy flying he brought some changes), so we tried to retrieve back the password, but my dad doesn't remember the security q causes forgive him he is distracted because of the age. So I tried to understand the answers ever since because I kind of sort of know but always without success. Now a few days later, recover password using Q security functionality is no longer available and only by e-mail. That obviously, I can't access because the e-mail account is identical to the Apple ID and locked? Haven't you how is it frustrating?  The only way to recover it is locked and I tried to call the help desk and I get an automated response, saying that his office is closed on Saturday. I am desperate and sent my situation through the comments suggestion email but no response. My father is a modest man, he uses no expensive gadgets and that the phone was a gift and for someone to take my father stuff makes me angry and even more angry that I am unable to help him recover. I read that he follows during the first 24 hours. Is there another way I can follow the phone or is it completely lost now?

    Confused,.

    Shika

    Hi Shika

    As your father can not receive emails, he should contact the Apple Support.

    The information is available here:

    Contact Apple for assistance with the security of the Apple ID - Apple Support accounts

    (I'm afraid that no one here can solve the problem for you.) You don't talk to Apple here - it is a community based on the user).

  • Cannot lock the note

    Hello

    I activated the password in the settings of Notes but the lock is not displayed in my note?

    I have a mini iPad, the latest version of iOs9.3

    No ID to touch but that password is within the parameters of the note shouldn't it market?

    Thanks for help

    Have you updated the Notes application?

    Update your notes with iOS 9 and OS X El Capitan - Apple...

Maybe you are looking for

  • 300 GB in apps?

    Hello, I am new to this operating system and do not know if it is correct. in 300 GB showing system preferences applications are increasing, but see the HDD information shows me any other information.

  • What the USB port allows for?

    I noticed a USB port on my AppleTV... .but port is mentioned nowhere in the User Guide. It would be wonderful if it could be used, for example, to connect a USB or even an external hard drive with images, which could be displayed on the connected TV.

  • How to fix error windowsupdate_800F0104

    trying to install an update to windows for nVidia - display, other hardware - NVIDIA GeForce 9200. Published 25.5.11. I tried to update several times, but continues to do not. Why?

  • Can the hp 2710 all-in-one scan a document into a pdf file?

    Pouvez all-in-one printer from HP 2710 scan a document into a pdf file?

  • PowerEdge R320 cable for SATA?

    Hi all I recently bought a new (ok, almost new 'store') R320 server, that happened and seems to be wired to the SATA drives (non - hot). No hard drives have been included in the system - I was aware of this ;-) I also have two Dell 2 TB NearLine SAS