How to exit the camera application properly

I start the camera application by doing this

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

The camera app starts. I take a picture.

I am on a 9000 "BOLD".

You use the camera you will find that you can not close the app until you get rid of the image sets that you have just taken.

For example
take photo

Picture is a static view of the screen

If you press close (close menu) it does ' t go away.

If you press the ESC key, then press close he disappears.

now in my application, I need to simulate this but I can't seem to get out

I want to launch the application.

Press the trackball to take the picture

Save the photo.

Then exit.

I inject

EventInjector.invokeEvent (new EventInjector.KeyEvent (EventInjector.KeyEvent.KEY_DOWN, Characters.ESCAPE, 10));

EventInjector.invokeEvent (new EventInjector.KeyEvent (EventInjector.KeyEvent.KEY_UP, Characters.ESCAPE, 30));

And it closes ok

BUT... when I opened the camera (for the second time) the image is on the screen, the last shot.

So, it didn't really come out. The user must press the ESC key stupid and then take another picture.

Any ideas?

Thank you

You test this in the simulator of BlackBerry or on a real BlackBerry "BOLD"?  What version of BlackBerry device software you are using (beneath Options, about)?  Is that you inject events for all the actions in your list or just the ESC key to exit?

Tags: BlackBerry Developers

Similar Questions

  • How to use the camera application

    original title: using the camera application

    According to me, that there is a photo on Metro Screen App.  Is there a documentation or a tutorial on how to use it and what it is for?

    When I click it, I see three small icons in the bottom right...  Camera, Timer and video options.  I don't know what to do with them.

    I see me, looking me in the opposite direction, that seems odd.  I found a folder in my pictures, to my surprise, with pictures of me and two videos! I think that pictures should occur when I click on the screen, but I have no idea how I created a video or how to do it again.

    This looks like a fun app but I need help to use.  I couldn't find anything in the help files.

    Any help would be greatly appreciated.

    MaryLou

    Note: I probably don't not select the category of app so if not, please move this where it needs to go.

    Dena, regardless on the computer because it is an external Kodak camera.  I know how to use the camera itself, but the camera application that appears on the screen of metro is NOT just easy to use.  It shows 3 small icons, one is a timer, the other is for the videos and I forgot what the other one was for.

    In any case, I finally thought to it.  To use the camera, you click on it, then you must click on the screen to start the camera going.   I'm not sure that the timer is for, but again, once you click on the timer icon, you click on the screen to start the timer.

    My camera screen is not screen mode have won 8 metro.  The camera works fine via desktop applications.  I have it working in the version of Win 8 of Skype as well.

    I like to win 8 but it is so lacking in the documentation that it is difficult to learn to use the new ways of doing.

    Thanks for the reply but as I said... has been resolved.

  • Satellite A200-AH7 - how to get the camera program?

    I installed Windows 7 today and now the Chicony Webcam does not work. I've updated the drivers and the software for the Toshiba for Windows 7 download site, but nothing happens when I click on camera assistant. I tried to run the compatibility program, and he tells me that the program is not compatible even tought that the software is for Windows 7.

    Any ideas on how to get the camera to run program?

    Thank you
    Gary

    Sorry my mistake, the camera assistant was hidden.
    Of work.

    Post edited by: gary blainville

    > Sorry my mistake, the camera assistant was hidden.
    > Work.
    This means that your webcam working properly now?

    If so it of great and thanks for your comments! :)

  • How to open the camera in the playbook

    Hello friends,

    Please help me out by telling how to open the camera in playbok by code...

    I need to open the camera, then click on a photo I want to display in my application

    Thank you.

    You must use the CameraUI class. See this link:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/Media/CameraUI.html#launch (...)

    App playbook: Car accident 

  • Re-installing the camera application

    I just got a Windows 8 Surface RT Tablet and I accidentally uninstalled the camera application, so I was wondering how can I re - install? Can you please explain step by step? Thank you!

    Hi Eva,

    To install the camera app, you can follow the steps provided.
     
    a. on the start screen, press Store to open the Windows store.
    b. open the bar and charms on the search bar, type "camera".
    c. press the install button.
    You can also check if the camera application is present in "your apps".
     
    Reference:
     
    Apps in the Windows store
     
    Here are the answers to some frequently asked questions about the camera application and troubleshooting of the webcam:
     
    Reference:
     
    App photo and webcams: FAQ
     
    Hope this information helps. Response with status so that we can help you.
  • You will need to change the permissions for the camera application.

    Original title - fresh paint App - settings

    I was testing the waters and accidentally leave refused to use the camera to the computer.   Now, when I click on the camera, it says

    "This application requires permissions to use your camera.

    "You can change this in the settings of the application.

    HOW DO THE APP SETTINGS?   :}

    Hello

    Thanks for posting your query on the Microsoft Community. I understand that you need help to change the permission to use your camera application. I will certainly help you in this matter.

    Method 1:

    Open the camera app, and then follow the steps mentioned below:

    1. Press Windows + C keys on your keyboard to open the bar of charms.
    2. Click the settings option.
    3. Select permissions .
    4. Turn on allow this application to access to your: Webcam and Microphone option.
    5. Close the camera application by pressing Alt + F4.
    6. Take control of the camera application if the application works.

    Method 2:

    If the problem persists please try to troubleshoot the app Windows 8 Apps troubleshooting to diagnose and fix the problem. Please click on link below to run the Troubleshooter:

    http://go.Microsoft.com/fwlink/p/?LinkId=268423

    See also below article for more information:

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Hope this information is helpful and let us know if you need more assistance. We will be happy to help.

    Thank you.

  • video recording on the camera application function does not

    My app windows photo 8 shows the video recording features, however nothing happens when I try to use it. I had no chance in the troubleshooting update and windows updates to fix this problem. How can I get the video camera recording function to work? Currently when I select the video mode, it absolutely nothing happens.

    Hello

    Are you able to take pictures using photo app?

    It seems that there is something wrong with the camera application.

    So, I suggest you follow these methods and check.

    Method 1:

    Run applications troubleshooting

    Download and run the troubleshooter modern UI App.

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    Method 2:

    I suggest you follow the steps in the article. Here is the link for your reference.

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/en-GB/Windows-8/what-troubleshoot-problems-app

    For reference: app photo and webcams: FAQ

    http://Windows.Microsoft.com/en-in/Windows-8/camera-app-FAQ

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

  • How to rotate the camera? HP ENVY X 2 Convertible Notebook/Tablet PC

    OMG I'm beyond useless and hate this computer up to now.

    Is someone can you please tell me how you face the camera forwards to a webcam as Setup?

    Thanks heaps.

    I understand you want to switch between the front and rear cameras.

    This will depend in large part on what application you are using.  The default camera in Windows 8 app has a button to switch between the two cameras located at the bottom of the app.

    What program do you use?

  • How to disable the camera led on my Satellite R830?

    Hi all

    Can someone please explain to me how to disable the camera led on a laptop Toshiba Satellite R830?
    Thank you for your help.

    AFAIK camera LED cannot be turned off. Web camera by activating the LED is always on.

  • How to turn the camera off when I get the picture?

    How to turn the camera off when I get the picture?

    How to turn the camera off when I get the photo I do my iphone 6 mute and when I get the picture give sound

    Some countries do not allow phones take pictures of silent.  iPhones sold in these countries do not allow the sound picture to shut up.

  • How to access the health application on an iPhone 4 running iOS 9.2 s?

    How to access the health application on an iPhone 4 running iOS 9.2 s?

    The icon is missing?

  • My IP security camera is different my network ip address, how to configure the camera to match the ip address with the router cable time Wörner

    Please someone help me configure my camera IPsecurity model m12 mobotix ag. It allows to work in the corporate network, but they close down and I didn't bring the camera House but there different IP address of my network and I don't know how to configure the camera to have the same IP address with my home router to TWC, thanks

    Router connections by opening network, in the Panel control, search for the router / properties, enter its configuration

    data in the boxes provided, you will get on the router, a sticker shows data. If lost or deleted, go to its Web

    for the data. Also, perhaps the home page of IP camera offers software/drivers.

  • After the downsizing of the original software of windows 8 for windows 7 ultimate, I can't find how to access the camera.

    Original title: webcam

    On my laptop hp15r, it is built in hp truevision hd webcam. After the downsizing of the original software of windows 8 for windows 7 ultimate, I can't find how to access the camera. Can someone help me with this problem?

    I have a laptop HP Windows 7.

    Type truevision or webcam or similar in the top of the start menu search box > right-click on the result, then select > open file location.

    My webcam can be found > lecteurC > Program Files (86) > Cyberlink > YouCam

    If I type YouCam in the search box, click with the right button on Cyberlink YouCam, it takes me to YouCam.exe.  You can do a right click on the .exe file and choose desktop (shortcut) so that you can access it from there. Once the shortcut on the desktop you can right click it and choose the PIN to the start menu or PIN to the taskbar tasks.

  • How to get the installed Application timestamp programmatically

    How to get the installed Application timestamp programmatically

    Can you please help me.

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/CodeModuleManager.html#...

    I'm sure you could find yourself by reading the API.

  • Bulkedit 4.0 build 61 and 'exiting the conversation application' setting

    4.04 the SR1 and Bulkedit 4.0 UNIT bld 61 running. I wanted to change the setting in the Conversation-> by exiting the conversation application to hang up for a group of subscribers to with bulkedit but there is no room under the conversation of change 'by exiting the application conversation' in the Bulkedit tool. Someone knows why?

    Thank you

    Tony Cekada

    [email protected] / * /.

    Yes, it's there - it's on the tab "Output Dest." When you have selected subscribers - he needed its own tab because there is simply no place to stick in the conversations tab...

Maybe you are looking for