Cannot close the camera using EventInjector for touchscreen models

Hi all

In my application, I opened the app native camera help

Invoke.invokeApplication (Invoke.APP_TYPE_CAMERA, new CameraArguments());

I have a listener added to monitor changes made to the file system. As soon as a new image is taken and added to the file system, the camera is close to the EventInjector.

I'm running it on JRE 5 and 6, and it works very well for models with no touch screen on the Simulator. However, it will not work for 9550 and 9800. On simulators, it is frozen just after the photo is taken (and probably saved). I loaded my torch, the photo is taken, then he brought me to the camera application instead to close the camera and take back me to my request.

There should not be a problem with my code, as I moved to a programme of work. So what could be the problem?

Same assumptions or any help would be appreciated.

Thank you very much

Tina

Hey everybody,

I solved the problem... It's because you don't have the appropriate permissions for your application to INJECT key events... Use the following code to request the appropriate permissions and you'll be on your way to the injection of events!

           ApplicationPermissionsManager permManager = ApplicationPermissionsManager.getInstance();

            if(permManager.getPermission(ApplicationPermissions.PERMISSION_INPUT_SIMULATION ) != ApplicationPermissions.VALUE_ALLOW ||                permManager.getPermission(ApplicationPermissions.PERMISSION_IDLE_TIMER ) != ApplicationPermissions.VALUE_ALLOW  )             {             //Request our permission to inject events             ApplicationPermissions pAppPermission = new ApplicationPermissions();

            pAppPermission.addPermission(ApplicationPermissions.PERMISSION_INPUT_SIMULATION);               pAppPermission.addPermission(ApplicationPermissions.PERMISSION_IDLE_TIMER);

              if( permManager.invokePermissionsRequest(pAppPermission) == false)                {

Please give Kudos if it solves your problem

Tags: BlackBerry Developers

Similar Questions

  • Oracle of the MAF error ' cannot read the DataControl uses on loadDataControl for the id:

    Need help!

    I created a simple SOAP web service for a remote database that works very well in 12 c WebLogic Server and also in the Jdeveloper HTTP Analyzer. When I use the same web service in the attached code, I get the following error (I've included output System.out.println in Ref. to the flow of the code) I use Jdeveloper 12 c MAF 2.0.0.0.41 on Mac OSx 10.9.

    Chk #0

    Processing line # 1

    Chk #1

    Chk #2

    [SEVERE - oracle.adfmf.framework - AmxBindingContext - loadDataControlById] Cannot read the DataControl uses on loadDataControl for the id: WLFNewActWS. [SEVERE - oracle.adfmf.framework - SynchronizationDC - syncDataFromOfflineToOnline] [Ljava.lang.StackTraceElement;@467c53d3

    @


    Sorry about that, I think I'm wrong you.

    OK, I created an example to test what goes wrong.

    1. server side, create a project named Employee_ws

    a. Department_ws.java

    public interface {Department_ws}

    public boolean addDepartment (a Department);

    }

    b. Department.java

    public class {Department

    public Department() {}

    Super();

    }

    int departmentId.

    String departmentName;

    locationId int;

    managerId int;

    {} public void setDepartmentId (int departmentId)

    this.departmentId = departmentId;

    }

    public int getDepartmentId() {}

    return departmentId.

    }

    {} public void setDepartmentName (String departmentName)

    this.departmentName = departmentName;

    }

    public String getDepartmentName() {}

    return departmentName;

    }

    {} public void setLocationId (int locationId)

    this.locationId = locationId;

    }

    public int getLocationId() {}

    return locationId.

    }

    {} public void setManagerId (managerId int)

    this.managerId = managerId;

    }

    public int getManagerId() {}

    return managerId;

    }

    }

    c. Department_impl.java

    @WebService

    / public class Department_impl implements Department_ws {}

    public Department_impl() {}

    Super();

    }

    @Override

    @WebMethod

    {} public boolean addDepartment (@WebParam (name = "arg0") a Department)

    If (Department! = null) {}

    int departmentId = department.getDepartmentId ();

    String departmentName = department.getDepartmentName ();

    int locationId = department.getLocationId ();

    managerId int = department.getManagerId ();

    Connection Conn;

    try {}

    Conn = ConnectionFactory.getConnection ();

    conn.setAutoCommit (true);

    Statement šment = conn.createStatement ();

    String inset_sql =

    "INSERT INTO dept (department_name, location_id, department_id, manager_id) VALUES ('+ '.

    departmentId + "," "" + departmentName + "'," + locationId + "," + managerId + ")";

    šment. Execute (inset_sql);

    Returns true;

    } catch (Exception e) {}

    System.out.println (e);

    }

    }

    Returns false;

    }

    }

    d. ConnectionFactory.java

    import java.sql.Connection;

    to import java.sql.DriverManager;

    import java.sql.SQLException;

    Connect to the database

    public class {ConnectionFactory

    public ConnectionFactory() {}

    Super();

    }

    protected static connection conn = null;

    public static connection getConnection() bird Exception {}

    If (conn == null) {}

    try {}

    String driver = "oracle.jdbc.driver.OracleDriver";

    String url = "jdbc:oracle:thin:@localhost:1521:orcl";

    User String = "employee";

    String password = "employee";

    Class.forName (driver);

    Conn = DriverManager.getConnection (url, user, password);

    } catch (SQLException e) {}

    System.Err.println (e.getMessage ());

    }

    }

    return conn;

    }

    public static {} Sub closeConnection()

    try {}

    If (conn! = null) {}

    Conn.Close ();

    Conn = null;

    }

    } catch (Exception ex) {}

    throw new RuntimeException (ex);

    }

    }

    }

    You can run Department_impl.java to start the Web service. i.e. http://127.0.0.1:7001 / Employee_ws-Client-context-root/Department_implPort? WSDL

    Server side sql:

    CREATE USER employee IDENTIFIED BY employee DEFAULT TABLESPACE users

    Temp TEMPORARY TABLESPACE

    Users WE QUOTA UNLIMITED;

    GRANT create employee to logon.

    GRANT alter used to logon.

    GRANT create any employee at table;

    GRANT create trigger employee TO;

    GRANT create any employee to view;

    GRANT create sequence employee TO;

    GRANT create synonym employee TO;

    GRANT create type employee TO;

    GRANT create employee to procedure;

    CREATE TABLE (DEPT

    DEPARTMENT_ID NUMBER (7, 0) NOT NULL,

    DEPARTMENT_NAME VARCHAR2 (50).

    NUMBER OF LOCATION_ID (7, 0),

    MANAGER_ID NUMBER (7.0)

    );

    2 create a mobile application of CRG named Dept

    a. Department.java (even for the server)

    b. SynchronizationDC.java

    import java.util.ArrayList;

    import java.util.List;

    Import oracle.adfmf.framework.api.AdfmfJavaUtilities;

    Import oracle.adfmf.framework.exception.AdfInvocationException;

    public class SynchronizationDC {}

    public SynchronizationDC() {}

    Super();

    }

    public void syncDataFromOfflineToOnline() {}

    It's just for testing, so I build Department manually instead of mobile db data, please replace in your business logic

    A Department = new Department();

    department.setDepartmentId (1);

    department.setDepartmentName("1");

    department.setLocationId (1);

    department.setManagerId (1);

    NamesList list = new ArrayList (1);

    List ParamsList = new ArrayList (1);

    List TypesList = new ArrayList (1);

    namesList.add ("arg0");

    paramsList.add (department);

    typesList.add (Department.class);

    try {}

    AdfmfJavaUtilities.invokeDataControlMethod ("Dept_WS", null, "addDepartment", namesList, paramsList,

    typesList);

    } catch (AdfInvocationException e) {}

    System.out.println (e);

    }

    }

    }

    c. new an AMX pag called Dept.amx

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    Text = "syncDataFromOfflineToOnline."

    Disabled = "#{!}" Bindings.syncDataFromOfflineToOnline.Enabled}"id ="cb3"/ >

    d. deploy on Android Simulator

    Click the button and a new record have been db insert through the webservice, search the remote db recording

    If above does not solve your problem, please let me know, thanks.

    Byron

  • IdeaPad Y450 - message 'cannot open the camera.

    I recently bought a Lenovo IdeaPad Y450. There is a problem with the camera. I use the Windows 7 32-bit operating system.

    I installed the drivers and the Lenovo easy Capture software.

    When I check the Device Manager on my computer, the camera is listed under imaging devices and it indicates that the device is functioning properly.

    Other USB devices on my computer work correctly.

    When I open the Lenovo easy Capture software, I get the following message: "cannot open the camera.

    I tried to uninstall everything and do a fresh install, but nothing seems not to solve this problem.

    Do you have any suggestions?


  • Cannot reduce the size of photos for emailing - no email partner program

    I click on the photo folder, click send to, click on the message, reduce the size, fix and POP UP APPEARS says there is no e-mail program associate, if please install or go to the default program and create an association.  I can send an original email size 4 MB, but can not send too much of. I have Windows 7. What should I do. ?

    Moved from feedback

    Original title: cannot reduce the size of photos for emailing.

    Hello

    Windows 7 came with a pre-installed email program.

    If you have installed one?
    Windows Live Mail is popular
    http://explore.live.com/Windows-Live-Essentials?OS=other
    Is Thunderbird http://www.mozilla.org/en-US/thunderbird/

    After installing an e-mail program, make sure you have a default e-mail together program control panel > Default programs > set access and computer program defaults > Custom > click the caret down.

    The default e-mail program must be installed on the computer - e.g.Outlook Express, Windows Mail (Vista), Windows Live Mail, Thunderbird, etc.

    Web-based e-mail services cannot be made except by default e-mail program:
    * Yahoo, with the Yahoo tool bar
    http://help.Yahoo.com/l/us/Yahoo/mail/YAHOOMAIL/settings/settings-10.html
    * Gmail with gmail warning system installed
    http://mail.Google.com/support/bin/answer.py?answer=10966

    Hope this helps,
    Don

  • PC W7 cannot close the creative Cloud application

    Does anyone know why my pc W7 cannot close the creative cloud application when I stopped my pc?

    When I want to shut down the pc, I always have a message and must close the creative application Cloud by force (I don't know the passage of law).

    THX!

    This seems like a minor issue, so I recommend leaving her alone and allowing victory to force her to stop.

    You can also open your Preferences cc dialog box and not start cc when you connect if this prompt mind.  Just run the application cc, at most once a month.

    and if you want to solve the problem, you would probably need to uninstall any cc including the application office, specific to the use of the Adobe Creative Cloud cleaning tool to solve installation problems , restart your computer and reinstall the desktop by https://creative.adobe.com/products/creative-cloud application

  • You cannot delete the pattern used to the absence of an employee

    We are on 11.5.10, there is one issued due to the Absence. Suggest, we created type absence as "Time off" and attached reason which is mentioned below. After a while, we decided to remove the specific reason so that this employee cannot select this reason while submitting to authorization through self-service. Although we have disabled that always shows the reason for the "ABSENCE_REASON" research but employee self-service creates leave.

    "However, when I try to remove holiday because of the type of absence as mentioned above, then system will trigger the message" error MESSAGE: "you cannot delete the pattern used to the absence of an employee.

    Reason
    1 accident
    Appointment 2.doctor
    3. others

    How can we remove the 2nd reason (doctor appointment) to the list even if it has already been used in absence transactions.

    Thank you.

    Have you tried to value in the research of reason for the absence of end date?

    Also clear the Cache before testing...

  • Cannot close the first with other (LH one end) tab open are closed.

    Cannot close the first tab (end of LH we) but others are closing. Indicator download on tab keeps indefinitely - running windows under all the tabs are functioning normally.
    Open another copy of Firefox allows all tabs to work normally in this copy

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    See Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems

  • Cannot complete the update of security for Windows Vista (KB2961072)

    I have windows vista and cannot complete the update security update for Windows Vista (KB2961072) KB2961072.  I also ran system update readiness tool. No luck.   Anyone have any ideas on how to solve this problem?

    I had a very very long list of updates from several years ago, now I see only about 60.  OS says I have SP2 yet, but it does not look like it.  What happened to the hundreds of updates?  I have updates of the .net Framework and part of last week.

  • I have a statioery box that appears in the cenbter of my screen. Cannot close - the cursor moves UNDER it. How can I get rid of him?

    I have a box of stationery that opens in the center of my screen.  Cannot close - the cursor moves UNDER it. How can I get rid of him?

    Hello

    1. when exactly you get the pop up?

    2. What is the pop up to say?

    Additional information on the issue so that we can better help you.

  • Cannot READ the CODE of REDEMPTION for Itunes gift card

    Cannot READ the CODE of REDEMPTION for Itunes gift card

    Take it back to the shop. It has nothing to do with MS

  • cannot synchronize the canon elph 350hs for computer

    cannot synchronize the canon elph 350hs for computer - it keeps saying I need to download the software I did

    check and install the software in this link

    http://www.Canon.ca/inetCA/en/products/method/GP/PID/43924

    If it fails to request additional support from the same canon link

  • Cannot find the WSDL service defined for the name of the service

    Hello! I made that call on the other composite via MDS on a single instance. Everything works fine. I've deployed this composite 2 to another instance, updated MDS. And I got error in the composite test 1st 2nd call. You have an idea? Thank you.


    EM error


    " < bpelFault > < faultType > 0 < / faultType > < remoteFault xmlns =" http://schemas.Oracle.com/BPEL/extension "> < part name ="detail"> < could not find the service WSDL defined for the name of the retail service > {http://xmlns.oracle.com/EnterpriseServices/Core/ShipmentAdvice/V1}. CreateShipmentAdviceService. Please make sure that the port attribute to the binding defined in the composite file is correct by checking the service name and namespace in the element #wsdl.endpoint. Also, check that the WSDL file for binding namespace is imported and is currently accessible (check import at the top of the composite file nodes). Finally, to validate the parameters of HTTP proxy for the server. < / details > < / part > < a name = "summary" part > < summary > oracle.fabric.common.FabricInvocationException: could not find the service WSDL defined for the service name {http://xmlns.oracle.com/EnterpriseServices/Core/ShipmentAdvice/V1} CreateShipmentAdviceService. Please make sure that the port attribute to the binding defined in the composite file is correct by checking the service name and namespace in the element #wsdl.endpoint. Also, check that the WSDL file for binding namespace is imported and is currently accessible (check import at the top of the composite file nodes). Finally, to validate the parameters of HTTP proxy for the server. < Summary / > < / part > < part name = "code" > < null code > < / code > < / piece > < / remoteFault > < / bpelFault >


    SOA-server - diagnostoc.log


    Handle error message.

    error while trying to process the message 'com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage '; the reported exception is: block cannot handle the exception.

    failure of the block 'BpPrc0' to handle an exception of business for instance '350026'; reported exception is: faultName: {{http://schemas.oracle.com/bpel/extension} remoteFault}

    messageType: {{http://schemas.oracle.com/bpel/extension} RuntimeFaultMessage}

    parts: {}

    detail = < detail > cannot find the WSDL service defined for the service name {http://xmlns.oracle.com/EnterpriseServices/Core/ShipmentAdvice/V1} CreateShipmentAdviceService.  Please make sure that the port attribute to the binding defined in the composite file is correct by checking the service name and namespace in the element #wsdl.endpoint. Also, check that the WSDL file for binding namespace is imported and is currently accessible (check import at the top of the composite file nodes). Finally, to validate the parameters of HTTP proxy for the server. < / details >

    , summary = < summary > oracle.fabric.common.FabricInvocationException: could not find the service WSDL defined for the service name {http://xmlns.oracle.com/EnterpriseServices/Core/ShipmentAdvice/V1} CreateShipmentAdviceService.  Please make sure that the port attribute to the binding defined in the composite file is correct by checking the service name and namespace in the element #wsdl.endpoint. Also, check that the WSDL file for binding namespace is imported and is currently accessible (check import at the top of the composite file nodes). Finally, to validate the parameters of HTTP proxy for the server. < / Summary >

    code = < code > < code > null}

    This error exceptions thrown by the underlying routing system.

    Contact Oracle Support Services.  Provide the error message, the composite source and the trace of the exception in the log (logging level value debug mode) files.

    This error was an exception that is thrown by the message handler.

    Check the trace for the exception in the log (the connection value level debug mode).

    ORABPEL-05002

    Handle error message.

    error while trying to process the message 'com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage '; the reported exception is: block cannot handle the exception.

    failure of the block 'BpPrc0' to handle an exception of business for instance '350026'; reported exception is: faultName: {{http://schemas.oracle.com/bpel/extension} remoteFault}

    messageType: {{http://schemas.oracle.com/bpel/extension} RuntimeFaultMessage}

    parts: {}

    detail = < detail > cannot find the WSDL service defined for the service name {http://xmlns.oracle.com/EnterpriseServices/Core/ShipmentAdvice/V1} CreateShipmentAdviceService.  Please make sure that the port attribute to the binding defined in the composite file is correct by checking the service name and namespace in the element #wsdl.endpoint. Also, check that the WSDL file for binding namespace is imported and is currently accessible (check import at the top of the composite file nodes). Finally, to validate the parameters of HTTP proxy for the server. < / details >

    , summary = < summary > oracle.fabric.common.FabricInvocationException: could not find the service WSDL defined for the service name {http://xmlns.oracle.com/EnterpriseServices/Core/ShipmentAdvice/V1} CreateShipmentAdviceService.  Please make sure that the port attribute to the binding defined in the composite file is correct by checking the service name and namespace in the element #wsdl.endpoint. Also, check that the WSDL file for binding namespace is imported and is currently accessible (check import at the top of the composite file nodes). Finally, to validate the parameters of HTTP proxy for the server. < / Summary >

    code = < code > < code > null}

    This error exceptions thrown by the underlying routing system.

    Contact Oracle Support Services.  Provide the error message, the composite source and the trace of the exception in the log (logging level value debug mode) files.

    This error was an exception that is thrown by the message handler.

    Check the trace for the exception in the log (the connection value level debug mode).

    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:238)

    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:89)

    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:65)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:897)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:919)

    to com.collaxa.cube.engine.dispatch.Dispatcher$ ContextCapturingThreadFactory$ 2.run(Dispatcher.java:933)

    at java.lang.Thread.run(Thread.java:738)

    ]]

    Hello

    In the em console, against you call composite (I meant first composite), could you click on the "Show XML definition" (right next to the ' Show WSDL and endpoint URI) and see if correct endpoint URI is set up for the 2nd composite?

  • CS6 Photoshop Camera Raw 7.1 Installation failed. Error code: U44M2P7 - try to get the Camera Raw Filter for Photoshop CS6

    CS6 Photoshop Camera Raw 7.1 Installation failed. Error code: U44M2P7 - try to get the Camera Raw Filter for Photoshop CS6

    U44... Update error http://forums.adobe.com/thread/1289956 can help

    Try to install your updates manually

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • There the camera free 3D for after effects cs5 trackers?

    There the camera free 3D for after effects cs5 trackers?

    Try your 3d tracking in Blender SirNih4l and it's free tutorials on youtube.

  • may I know if the camera raw updates for cs6?

    Hello

    may I know if the camera raw update for photoshop cs6?

    I know no functionality will be added, but I don't speak camera support

    for how long will update to camera raw for cs6 (camera support, add new cameras)

    Sorry for my bad English

    Thank you

    Adobe only knows, but what they have said, more or less until thay stop sale photoshop cs6, whenever that might be.

    http://blogs.Adobe.com/lightroomjournal/2013/05/Adobe-camera-raw-8-support-for-Photoshop-c c-photoshop - cs6.html

Maybe you are looking for

  • upgrade memory on my laptop HP 15-d073nr

    I have a memory of 4 GB I want to speed up upgrading the GB of memory on my laptop HP 15 - d073nr.  I need to know how to add and how to access the memory card.

  • x220t tablet pc input panel during good behaviour

    I have a lenovo with win 7 Home premium x220t and have had for nearly three years. Recently, when you use the wacom tablet pc input panel pen became immovable. The Panel opens if I hover the pen on the screen and when I click on the Panel's slides on

  • 84 40007 error code - do not install - Microsoft SQL SERVER 2008 Service Pack 2 (KB2285068)

    I was trying to install the option upgrade Microsoft SQL SERVER 2008 Service Pack 2 (KB2285068) when I experienced a power failure.   The installation was not yet complete.  Subsequent attempts to reinstall the Windows Update option always lead the 8

  • CD script error

    I was working on a CD of a manual of nursing nursing when my battery died.  I hooked up the computer and restarted the computer.  Tried to work on the CD.  Message appeared: Director error, Script error, continue: Yes/No. The questions on the CD are

  • After a laptop Lenovo R500 of imagery, the radio is no longer lights up

    While creating an image for a laptop Lenovo R500 with Windows 7 Enterprise, I then sysprep it then send it to our server of ghost. When you first start, the laptop that I used to create the image works fine with upcoming radio on, however when I am u