After you call the camera and upload a photo, how to return to my application?

I can call him on camera, and I can detect when files is created in the image, using JournalListener. What I can't understand how to do it is to return to the application and display the image on my Web app.

I want to be able to close the camera application. Is there a way to do this?

I try to use:

EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_DOWN, (char) Keypad.key (Keypad.KEY_ESCAPE), Keypad.status (Keypad.KEY_ESCAPE), 50));

but does not answer, please sombody give me help

I have a listener to determine where the files have been added to the file system.

In this listening port, I have the following code...


EventInjector.KeyEvent inject = new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_DOWN, Characters.ESCAPE, 0, 50);                       inject.post();                       inject.post(); 

Tags: BlackBerry Developers

Similar Questions

  • I just plugged my camera and uploaded new photos for my Creative Memories Photo Manager. Now when I go to the Safely Remove Hardware my camera does not show... only my external hard drive.

    I have a new computer.  We have been plug an external hard drive to move my photos in the new computer.

    I just plugged my camera and uploaded new photos for my Creative Memories Photo Manager.  Now when I go to the Safely Remove Hardware my camera does not show... only my external hard drive.  I'm afraid of getting my camera.

    Any help is greatly appreciated!
    Thank you
    Oumar W

    Creative Memories Photo Manager probably ejected your camera after you import the images. Check the default settings and change them if you prefer something different.

    If your camera is not displayed as ejection, it is safe to remove it. Damage to the file system wouldn't be possible, but not certain, if he had written active file or buffer not released when the device has been deleted.
  • Menu remains visible after you make the selection, and does not show Popupscreen

    Hey. Unable to get a (a gaugefield) on a Popupscreen progress bar to show. It is called from a menu. The user clicks a menu item, and a method is called. The method among other pushes a Popupscreen containing a Gaugefield on display battery-code below. Then, he starts a thread which downloads an image and using join() to wait for it complete (long story). Then, in the thread of events, it appears the Popupscreen.

    The menu does not disappear when you click on it in the Simulator (JDE 4.7, the Bold 9700 sim), but the download happens. Once the download is complete, the menu disappears, the Popupscreen is shown and he tried to pop() Popupscreen, causing an IllegalArgumentException.

    I tried to split the method into two methods, the download happened in the 2nd method, because I read the forum search that the UIEngine don't update the display until the method finishes (it runs in the event thread). But it made no difference...

    How can I get this menu to disappear immediately and the push (popup) to work?

    See you soon!

    Justin.

                            progressbar = new GaugeField("", 0, 100, 50, GaugeField.NO_TEXT);
                            progress = new PopupScreen(new FlowFieldManager()) { protected void OnDisplay() { super.onDisplay(); /*cancelButton.setFocus();*/  }  };
                            globalTiles.pushScreen(progress);
    
                            progress.add(new LabelField("Downloading (rest of) picture ..."));
                            progress.add(progressbar);
                            progress.setFocus();
    
                            if (!threadbg.isAlive()) {
                                       threadbg = new ThreadForBgDownload();
                                       threadbg.start();
                            }
                            else {
                                       // Show the progress bar, mostly complete (it is running and was in the bg). Game will start after last bit done
                            }
    
                            threadbg.join(); // Wait for download thread to complete and 'die'
    
                            globalTiles.popScreen(progress);
    

    Rule #1: all display updates should occur on the thread event or synchronized on the lock of the event.

    Rule #2: the thread of events (or now the lock of the event) should never be blocked by lengthy operations.

    The scenario you sketched out is usually handled like this: menu item run() method don't whatever immediate user interface updates are necessary and starts a worker thread. It does not wait until the thread ends before returning. (If so, updates the user interface include pushing a "Please wait" or progress pop up). The worker, at the same time, begins to do its stuff. When it's time to update the user interface (either because the task is completed or to view progress) the worker thread usually called invokeLater (Runnable) (a method in the Application class) where the executable run() method updates the user interface. If the worker thread must receive user input in his work, he can use invokeAndWait (Runnable), where the executable not all interactions of the user and stores the user entry somewhere so that the worker thread can grab after invokeAndWait() returns.

    Although the synchronization on event lock works perfectly well, it is more common for some reason any to invoke a Runnable, perhaps because the latter clearly encapsulates in a separate object the work to be done on the event thread.

    The above policy is the basis of the excellent Peter Strange example I linked to before.

  • After you import the clip and video does not appear on the timeline, but its not

    The first clip, I am able to download sound and video, but after that, every other element only allows me to place the sound on the timeline. I have reset the settings and everything. I don't know that the clips work because I left and was able to put the same clip that only carried his last time and managed to get the video but then after all other clips only send sound. How can I fix?

    You can check the target track and the source patch way alternate.

  • Bootcamp (Win10) has not started after you changed the partition and updated at El Cap.

    I have a MacBook Pro (retina, 15 inches, end of 2013), 2 GHz Intel Core i7 with 8 GB of Ram.

    I had 2 system installed, Win 10 + Yosemite from the windows of beginning and the use of most of the time.

    Yesterday, I ran out of disk space and passed the partition in OS X with disk utility.

    While I changed the partition and I also upgraded to the El Cap.

    After all, I can't start by winning 10 more, although I could see my windows in the startup disk Control Panel.

    I checked some thread here and mess with command autour terminal, but nothing has worked for me.

    Here is the result of diskutil:

    Jerbins-MacBook-Pro: ~ the jerbinyuan list $ diskutil

    / dev/disk0 (internal, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 251,0 disk0

    1: disk0s1 EFI EFI 209.7 MB

    2: Apple_HFS Macintosh HD 70.1 GB disk0s2

    3: disk0s3 Apple_Boot Recovery 650.0 MB HD

    4: Microsoft data base BART 30.0 GB disk0s4

    5: Microsoft database HOMER 150,0 GB disk0s5

    Jerbins-MacBook-Pro: ~ list of cs jerbinyuan$ diskutil

    No logical volume group CoreStorage found

    Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo TPG - vv - r show/dev/disk0

    Password:

    See the TPG: / dev/disk0: mediasize = 251000193024; SectorSize = 512; blocks = 490234752

    See the TPG: / dev/disk0: MBR suspicious to sector 0

    See the TPG: / dev/disk0: Pri GPT to sector 1

    See the TPG: / dev/disk0: GPT Sec at sector 490234751

    start index size summary

    0 1 MBR

    1 1 Pri GPT header

    2 32 table GPT Pri

    34 6

    40 409600 1 part TPG - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640 136992184 2 part TPG - 48465300-0000-11AA-AA11-00306543ECAC

    137401824 1269536 3 part TPG - 426F6F74-0000-11AA-AA11-00306543ECAC

    768 138671360

    138672128 58595328 4 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    197267456 292966400 5 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    490233856 863

    490234719 32 table dry GPT

    490234751 1 dry GPT header

    Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo fdisk/dev/disk0

    Disk: geometry / dev/disk0: 30515/255/63 [490234752 sectors]

    Signature: 0xAA55

    From end

    #: cyl hd s - cyl hd s id [Start - size]

    ------------------------------------------------------------------------

    1: EA 1023 254 63 - 1023 254 63 [1-409639] < unknown ID >

    2: AF 1023 254 63 - 1023 254 63 [409640-136992184] HFS +.

    3: AB 1023 254 63 - 1023 254 63 Boot Darwin [137401824-1269536]

    4: 0 b 1023 254 63-1023 254 63 [138672128-58595328] Win95 FAT-32

    Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo dd if = / dev/rdisk0s4 account = 1 2 >/dev/null | hexdump - C

    00000000 2nd eb 58 90 42 53 44 20 20 34 34 00 02 20 20 00 | X.BSD 4.4...  .|

    00000010 02 00 00 00 00 00 00 20 00 f8 ff 00 00 f8 43 08 |... C. |

    18 00 00000020 7th e0 03 37 00 00 00 00 00 00 02 00 00 00 |... ~... 7..........|

    00000030 01 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |... |

    00000040 80 00 29 11 14 2f 2 a 42 41 52 54 20 20 20 20 20 |..) ... / * BART |

    00000050 20 20 46 41 54 33 32 20 20 20 31 c0 d0 bc 8F fa |  FAT32. 1... |

    00000060 00 7 c fb 8th d8 e8 00 00 83 19 bb 07 00 fc 5th c6 | | ......^.......|

    00000070 c0 ac 84 74 b4 06 0e cd 10 eb 30 cd 16 cd e4 f5 |... t... 0....|

    00000080 19 0D 0a 4th 6f 6F 2d 73 79 73 74 65 6 d 20 64 69 |... Nonsystem di |

    00000090 73 6B 0D 0 a 50 72 65 73 73 20 61 79 20 6 6 b 65 | SK... Press any ke |

    000000a 0 79 20 74 6f 20 72 65 62 6f 6f 74 0D 0 a 00 00 00 | is reboot... |

    000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |... |

    *

    000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |... U. |

    00000200

    Jerbins-MacBook-Pro: ~ jerbinyuan$ diskutil info/dev/disk0s5

    Identifier of the instrument: disk0s5

    Device node: / dev/disk0s5

    Set: No.

    Part of the whole: disk0

    Device / media name: BOOTCAMP

    Volume name: HOMER

    Gendarmerie: Yes

    Mount point: / Volumes/HOMER

    Personality of file system: NTFS

    Type (Bundle): ntfs

    Name (Visible to the user): Windows NT (NTFS) file system

    Partition type: Microsoft Basic Data

    Operating system can be installed: No.

    Media type: generic

    Protocol: PCI

    Smart: checked

    Volume UUID: 4EC75B8E-02A8-4B26-B7F3-5EA9D0A47FA9

    Disk / Partition UUID: 776C43C1-7E4C-4997-BDF5-A91FD406DEBD

    Total size: 150.0 GB (149998796800 Bytes) (exactly 292966400 512-Byte-units)

    Amount of free space: 18.5 GB (18479718400 Bytes) (exactly 36093200 512-Byte-units)

    Device block size: 512 bytes

    Allocation block size: 4096 bytes

    Support read-only: No.

    Volume read-only: Yes

    Location of the device: internal

    Removable media: no

    Solid State: Yes

    Thanks for help.

    Please follow the steps described in [help] can not boot Windows (8.1) after partition resizing .

  • Message notification is not displayed after you read the message and minimizing Skype for the next 5 minutes

    Hello

    We are a company of about 30 employees. We all use Skype. We are experiencing a problem where after reading the first message and minimize Skype, we do not receive the message notification until 5 minutes. This becomes painfully irritating that we will have to go check manually on all our messages to see if the other user has responded or not.

    Any help or guide in the right direction would be much appreciated

    Found the problem. Server a five minutes late, having first message "5 minutes" customers of time machine. Thus causing a space of 5 minutes of no message.

    Set the time on the server and re - sync all customers. 100% working now

  • After you configure the video and music on Windows Movie Maker 2.6 screen goes black

    The Windows Movie Maker 2.6, I have my video and audio set up and perfect. But when the video and music that is made, the game screen turns black and theres no video and audio on. HELPP PLEAAASEEE! It is a House project which was awarded only to me yesterday. tomorrow, it is due.

    Hello

    (a) we would like to get a better understanding of this issue, so we can better help not only you but other users with similar problems.

    (b) what operating system do you use?

    (c) what is the length of the film?

    (d) what is the original file of the film format (.avi, etc.)?

    The issue could be caused by audio and video filters. Please see the link below.

    Video filters in Windows Movie Maker: frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows-Vista/video-filters-in-Windows-Movie-Maker-frequently-asked-questions

  • Content of PersistenObject disappears after you remove the app and the new facility

    Hi guys,.

    I discovered the following problem with my app:

    1. when I update app with new version all persistent data is stored very well.

    2. when I delete the app and install it again - some of the persistent data disappears, some is always there.

    I think it depends on who what is persisted. If there are classes of applications store is deleted on uninstall, if there are classes of system store will not be erased.

    Can you tell me about the resource, where it is described?

    Thank you

    Eugen

    I found:

    When you use the persistence model of BlackBerry, data is removed only if the store contains data that belongs to the deleted application.

    For example, if an application stores an object with a package named com.mycompany.application.storage and no other application on the BlackBerry smart phone makes reference to packaging, permanent storage and the deleted application are removed.

    The knowledge base article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800647/How_To _...

  • Web site does not load after you type the address and pressing the return key

    I just downloaded and installed Firefox for a second time. First, I imported my IE settings. The second time I did not import the settings. Both times, after that I have type an address in the address bar and press ENTER key nothing happens. I even tried the subject: config and nothing happens.

    If you are in a corporate network environment:

    20.0 Firefox has a problem with configurations where your Windows profile is stored on a server using a UNC path (for example, \\userdata\greg). Currently, there is a solution for this. A solution could be to choose a local folder for your own settings of Firefox, but that could not be authorized by your COMPUTER. Even if it's less safe, if you need emergency of Firefox, you could install Firefox 19.0.2. This article has a link under 'I still want downgrade': install an older version of Firefox.

    If you are in a home environment or the local settings folder, then please ignore the above.

  • After you download the camera raw plug, Nikon D800 files not recognized. How can I fix this please?

    I just had a new hard drive in my MacBook Pro and had to reinstall Photoshop CS4. Despite the latest Camera Raw plugin download Photoshop does not recognize my raw files from my Nikon D 800

    That is right. The D800 Nikon NEF RAW requires ACR 6.7 or higher and you must be at least CS5 to use ACR 6.7.  You must download convert DNG 8.6 and create DNG files for NEF files using CS4. Camera Raw plugin | Compatible cameras

  • Unable to connect to the Internet after you install the update

    My computer crashed this afternoon. I restored it since restoration, but Firefox lost disk and my Trend Micro antuvirus.  I downloaded the two products, but when I try to install them, they are trying to reconnect to the internet to complete the download.  Or the program is able to do.  I can log on the Internet and to allow them there have turned off the Windows Firewall and Windows Defender, suspecting one of them was blocking the remote connection.  I am running Windows Vista and IE8.  When I Windows Update, I lose all internet connections and have to use system restore to go back before the updates.

    Original title: remote connections

    Hi Cauvagee,

    ·        You are able to access remote desktop connection now after you disable the firewall and Windows Defender?

    It seems that one of the update is at the origin of the problem of Internet connectivity. You can follow the steps below and check it it helps you solve the problem.

    Step 1

    You can access to view the history of update on your computer and the Coachman, who was the last update that was installed when this problem occurred and post back the details of the update.

    To view the update history, follow the steps below:

    a. open the control panel (all items view), and click the Windows Update icon.

    b. click on the link to view update history.

    Step 2

    Check out who are the updates which has been installed on the computer before that the problem began, later, uninstall it and check if that helps.

    1. Open installed updates by clicking on theStart button, clickingControl Panel, clickingPrograms and then underPrograms and features, clickingView updates installed. Note the number KB for the updates have been installed before this problem started.
    2. Select the update that has been installed and uninstall the updates one by one and check the update which is at the origin of the problem.

    Step 3

    Once you take note of the update that causes this problem, you can download the stand-alone version of the update on your desktop and try to install it manually and check to see if it helps you to solve the problem of internet access. To download the standalone version of windows updates follow the steps below:

    a. take note of the update with the Ko only when your computer tries to update and install it.

    b. visit the following Microsoft Web site:http://www.microsoft.com/downloads/Search.aspx

    c. search by downloading the update.

    d. save it on the desktop.

    e. try to install it manually.

    If the problem persists after you have installed the stand-alone version of update, you can try to start the computer in safe mode with network and check if you can connect to the internet and post back the result. To boot to the desktop in safe mode keep tapping key F8 during restart. Once you see the option to start it in safe mode with select network and press ENTER.

    Access the link to learn more about how to start the computer in safe mode:http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode

    I hope this helps. Let us know the result.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • buy an iphone 5s by amazon and I came with iCloud blocked an account... {I called the seller and does not that I do that I'm from Venezuela please need your help}

    buy an iphone 5s by amazon and I came with iCloud blocked an account... I called the seller and does not that I do that I'm from Venezuela please need your help

    No one here can help you. The device is locked activation. Since you have made the purchase by Amazon, you can check with them to see if they will stand behind it. No one on the forum, or Apple can help you remove the lock. Only the previous owner can do this. I suggest that you demand a refund, so let's start a claim with Amazon about this dealer.

  • Code received the error 80004005 When you try to import photos and video from the camera in Windows Live Photo Gallery.

    Spent several hours in technical support with gun tries to resolve to not be able to download pictures from the camera to my Win XP computer.   Usually the computer detects the camera and demand "How would you import pictures?" and the list of shows in one window.   We don't get any list in this window, but only managed to fill the window briefly for WLPG to detect the photos and video, but when we went to import, we received the 8004005 error.   Thereafter, things have regressed, and we're back to not get any answer computer saying that it detects pictures or video - nothing.   But back to square one.

    There are two issues here - likely related: unable to import photos and videos and the 80004005 error.   Who came first and is there cause and effect here, and which way should we go?  Inquiring minds want to know - and being able to import photos and video of the camera Canon Powershot A3100IS again.

    After hours Technical Support Canon was completely blocked and indicated that it was probably an OS problem with my computer.

    Thanks for all your great suggestions.    I finally solve the problem, but I don't know exactly what fixed it.   I ended up running CCleaner (latest version) and make a 'windows', 'applications' and cleaning of "registry".   This needed a re-boot, and when I rebooted, it's when I could finally download the pictures from the camera.    Not exactly what fixed the problem, but there may be here spirits who may be able to say, ' Yes, with blah, blah, blah, you did...» ».

    As far as I know that is a lot of sterile technical support hours and re - install the software and then, finally, runing CCleaner paid off.    I will record your information in case I need it in the future... Thanks again.

  • Aspect wide photo after you transfer the images from the camera

    Original title - aspect wide photo after download

    After you transfer the pictures from my camera to my PC, subjects are not as the original photo taken.  People who are really thin show also stubby. I used another PC and downloaded normally photos.  I used the photo of different programs, from Kodak, Roxio, windows Photo Gallery. I put my card directly into the PC with the same results. I tried to change my video setting and updated my NVIDIA card driver. Change the size of the photo doesn't do any good change just the measure of perimeter. I know that I can edit the photos, so people watching more thin but can you imagine doing that in every pic I take. I hope someone can help

    I finelly solved the problem by playing with the resolution until I found the appropriate settings. How to change the setting, I don't know, but as long as it works I can live with that.

    Bob

  • Camera does not work after you reduce the screen brightness

    Hello

    I have an application that uses the camera in QML. It works fine, but if the screen fades while my application is open the camera no longer until I restart the application.

    Here is the page of qml any camera:

    import bb.cascades 1.0
    import bb.cascades.multimedia 1.0
    
    /**
     * Most of this code was copied from:
     * https://developer.blackberry.com/cascades/documentation/design/camera/taking_a_photo_with_the_front_...
     */
    
    Page {
        property string pictureLocation: ""
        function closeCamera() {
            createReportNavigationPane.cameraClosed(pictureLocation)
            pictureLocation = "";
            saveID.enabled = false;
            sheetCamera.close();
        }
        titleBar: TitleBar {
            acceptAction: ActionItem {
                title: qsTr("Save")
                id: saveID
                enabled: false
                //title: "Save"
                onTriggered: {
                    closeCamera();
                }
            }
    
            // The 'Cancel' action
            dismissAction: ActionItem {
                title: "Cancel"
                onTriggered: {
                    pictureLocation = "";
                    closeCamera();
                }
            }
        }
        onCreationCompleted: {
            // Check to see if any cameras are currently accessible.
            if (camera.allCamerasAccessible) {
                // Open the rear camera.
                camera.open(CameraUnit.Rear);
                camera.isOpen = true
            }
        }
        Container {
            layout: DockLayout {
            }
    
            // The Camera object.
            Camera {
                id: camera
                preferredWidth: 768
                preferredHeight: 1280
                objectName: "camera"
                property bool photoBeingTaken
                property bool isOpen: false
                onTouch: {
                    if (event.isDown()) {
                        if (photoBeingTaken == false) {
    
                            // Take a photo, and automatically
                            // save it to the file system.
                            camera.capturePhoto();
                        }
                    }
                }
    
                // The following are examples of slots that can
                // be used with the Camera object to handle
                // the various signals that are emitted.
                onCameraOpened: {
                    // Once the camera is open, start the viewfinder.
                    camera.startViewfinder();
                }
                onCameraOpenFailed: {
                    console.debug("Camera cannot open");
                }
                onViewfinderStarted: {
                    console.debug("Viewfinder has been started");
                    photoBeingTaken = false;
                }
                onViewfinderStartFailed: {
                    console.debug("Viewfinder could not be started");
                }
                onPhotoCaptureFailed: {
                    console.debug("Photo could not be taken");
                    photoBeingTaken = false;
                }
                onPhotoSaveFailed: {
                    console.debug("Photo could not be saved");
                    photoBeingTaken = false;
                }
                onPhotoSaved: {
                    saveID.enabled = true;
                    photoBeingTaken = true;
                    console.debug("Photo has been successfully saved");
                    photoBeingTaken = false;
                    console.log(fileName);
                    pictureLocation = fileName;
                    var imageName = pictureLocation.substring(pictureLocation.lastIndexOf("/") + 1);
                    var imagePath = "/accounts/1000/shared/camera/" + imageName;
                    cameraPreview.imageSource = app.getCameraPreview(imageName, imagePath);
                }
            }
            Container {
                layout: StackLayout {
                }
                leftPadding: 10.0
                topPadding: 10.0
                Container {
                    preferredHeight: 200
                    preferredWidth: 200
                    horizontalAlignment: HorizontalAlignment.Left
                    Container {
                        verticalAlignment: VerticalAlignment.Center
                        ImageView {
                            id: cameraPreview
                            verticalAlignment: VerticalAlignment.Fill
                            horizontalAlignment: HorizontalAlignment.Fill
                            scalingMethod: ScalingMethod.Fill
                        }
                    }
                }
            }
        }
    }
    

    Thank you

    Gerry

    so, there is a signal of cameraResourceReleased which you can listen to that will tell you that the camera has been arrested.

    After that, you can restart the viewfinder after your application is in the foreground.

    We have a corner case that we are still working on what centers around the case when the screen starts to close (causing the camera to stop), but the user he wakes up before the browser tells your application in the background.  In this case, you may not receive a leading event.  You can probably work around this case by launching a timer and check, after a second or two, if the application has been deleted original or not... If it is still in the foreground, then you could try restart the viewfinder

    See you soon,.

    Sean

Maybe you are looking for