issue of cameraView show

I'm trying to get the cameraView show, but when I open the map it shows just the underlying page.  What funny, however, is that the camera takes pictures when I touch.

This is the code for my camera QML:

I call this QML leave of a spreadsheet, don't know if that makes a difference.  Not there at - it no code standard QML to get the base cameraview (as in the camera application) without having to rely on the camera?  I want to reference the pictures stored in my application.

import bb.cascades 1.0
import bb.cascades.multimedia 1.0
import bb.multimedia 1.0

Sheet {
    id: cameraSheet

Page {
    id: photoPage
    titleBar: TitleBar {
        title: qsTr("Take a picture") + Retranslate.onLanguageChanged
        dismissAction: ActionItem {
            title: qsTr("Cancel") + Retranslate.onLanguageChanged
            onTriggered: {
                // Hide the Sheet.
                cameraSheet.close()
                }
        }
    }

    // A Container is used to gather visual items together.
    Container {
        layout: DockLayout {
        }
        Container {
            horizontalAlignment: HorizontalAlignment.Fill
            verticalAlignment: VerticalAlignment.Fill

            // This is the camera control that is defined in the cascades multimedia library.
            Camera {
                id: camera
                onTouch: {
                    if (event.isDown()) {
                        // Take photo
                        capturePhoto();
                    }
                }

                // When the camera is opened we want to start the viewfinder
                onCameraOpened: {
                    // Using helper function to set resolution

                    // Additional camera settings, setting focus mode and stabilization
                    getSettings(cameraSettings)
                    cameraSettings.focusMode = CameraFocusMode.ContinuousAuto
                    cameraSettings.shootingMode = CameraShootingMode.Stabilization
                    applySettings(cameraSettings)
//                    camera.startViewfinder();
                }

                // There are loads of messages we could listen to here.
                // onPhotoSaved and onShutterFired are taken care of in the C++ code.
                onCameraOpenFailed: {
                    console.log("onCameraOpenFailed signal received with error " + error);
                }
                onViewfinderStartFailed: {
                    console.log("viewfinderStartFailed signal received with error " + error);
                }
                onViewfinderStopFailed: {
                    console.log("viewfinderStopFailed signal received with error " + error);
                }
                onPhotoCaptureFailed: {
                    console.log("photoCaptureFailed signal received with error " + error);
                }
                onPhotoSaveFailed: {
                    console.log("photoSaveFailed signal received with error " + error);
                }
                onPhotoSaved: {
                    setting.lastFileName = fileName;
                    // Makes the ImageButton visible when a photo is captured.
                    setting.visible = true;
                }
                onShutterFired: {
                    // A cool trick here to play a sound. There are legal requirements in many countries to have a shutter-sound when
                    // taking pictures. So we need this shutter sound if you are planning to submit you're app to app world.
                    // So we play the shutter-fire sound when the onShutterFired event occurs.
                    cameraSound.play();
                }
                onCameraResourceAvailable: {
                    // This signal handler is triggered when the Camera resource becomes available to app
                    // after being lost by for example putting the phone to sleep, once it has been received
                    // it is possible to start the viewfinder again.
                    camera.startViewfinder()
                }

                onCreationCompleted: {
                    // Open the front facing camera.
                    camera.open(CameraUnit.Rear);
                }

                attachedObjects: [
                    CameraSettings {
                        id: cameraSettings
                    },
                    SystemSound {
                        id: cameraSound
                        sound: SystemSound.CameraShutterEvent
                    }
                ]
            }
        }

    } // content Container
}// Page
}

Thanks to davnce.  Any help will be loved and solutions will be marked.

see you soon,

Nevermind, I found a way to be much easier to do this simply by invoking the camera using C++

bb::system::InvokeManager manager;
bb::system::InvokeRequest request;
request.setTarget("sys.camera.card");
request.setAction("bb.action.CAPTURE ");
InvokeTargetReply *targetReply = manager.invoke(request);

Tags: BlackBerry Developers

Similar Questions

  • In the face of the issue in the 'Show ip route' command in GNS3

    Dear technical support engineers,

    I am new in the field of cisco, I do a simple and here's the configuratons topology:

    R1 #show int ip brief

    Interface IP-Address OK? Method State Protocol

    12.1.1.1 serial1/0 YES manual up up

    13.1.1.1 serial1/1 YES manual up up

    Loopback0 1.1.1.1 YES manual up up

    R1 #show ip route

    Gateway of last resort is not set

    1.0.0.0/8 C is directly connected, Loopback0

    12.0.0.0/8 is variably divided into subnets, 2 subnets, 2 masks

    C 12.0.0.0/8 is directly connected, Serial1/0

    C 12.1.1.2/32 is directly connected, Serial1/0

    13.0.0.0/8 is variably divided into subnets, 2 subnets, 2 masks

    C 13.0.0.0/8 is directly connected, Serial1/1

    C 13.1.1.3/32 is directly connected, Serial1/1

    This output is confusing for me, it is veriably divided into subnets. I have a lot of search on google for the solution, but failed, now looking forward to you.

    I want this result as:

    R1 #show ip route

    Gateway of last resort is not set

    1.0.0.0/8 C is directly connected, Loopback0

    C 12.0.0.0/8 is directly connected, Serial1/0

    C 13.0.0.0/8 is directly connected, Serial1/1

    Your prompt response will be highly appreciated.

    Thank you & best regards

    Tayyab Arif

    When you use ppp encapsulation, the default is to use a route peer that is where you see your 32. On your serial interface, do not enter "no peer neighbor-route", judgment No. closed your interface and the 32 should be gone.

    HTH,
    John

    Please note all useful messages *.

  • Text on the issue of slide show

    I try Muse, is it possible to make a moving slideshow, different text on each slide text?

    Thank you.

    Legends will remain with image and with compositions too, you can set the transition of the container on the whole not the elements of the specific container.

    This widget gives you the ability to add the displacement of a text you would need to add to the container of composition for the desired effect: http://musewidgets.com/collections/all/products/moving-text

    Thank you

    Sanjit

  • on this forum, how can I access previous issues published.  This shows only recent messages?

    on this forum, how do you get published earlier issues?  This shows only recent messages from a few minutes to Twitter.com.  I had posted a question yesterday and can't find it to view responses by others.

    Top right, go to more in the flow of connection.

  • SLIDE SHOW ON MY DESKTOP (BACKGROUND) GOT BIGGER AND VERY BLURRY.

    I HAVE A SLIDESHOW ON MY DESK (IN THE BACKGROUND).  HE GOT THE BIGGEST AND VERY BLURRY THESE DAYS.  HOW CAN I FIX?

    Original title: BARBKERN

    Hello Barb,

    Thank you for giving us the opportunity to help you.

    First of all, I would like to inform you that if you check the box that says "Notify me when someone replies to this message" at the bottom of your message, you will get notification on the email that you used to post on the forum.

    According to the issue description slide show on your desktop (in the background) is blurry and bigger. The question could be if there is some corruption settings or drivers either get corrupt / needing an update.

    Then, I suggest you to try the steps in the following methods and see if it helps.

    Method 1

    Follow the steps below to set the desktop background and select the photo to fit the display.

    1. open the wallpaper by clicking on the Start button , by clicking on Control Panel, appearance and personalization, personalization, and then clicking desktop wallpaper.

    2 click on the image or color you want for your background.

    If the image you want to use is not in the list of background images to display, click the location of the image downwards arrow to view other categories, or click Browse to find the picture on your computer. When you find the image of your choice, double-click it. It will become your desktop wallpaper and appear in the list of desktop backgrounds.

    3. under how the image must be positioned, choose to have the picture fit the screen, tile, or be centered on the screen and then click OK, you can choose here to adapt to the screen.

    Method 2

    If the problem persists you can try the steps provided by Zeyou responded on February 11, 2011 in the following thread and see if it helps.

    Wallpaper slide show, blurry images

    Method 3

    I would also say you update the display drivers and see if it helps you to solve the problem after the update of drivers. You can see the link provided below to update the drivers.

    Update drivers: recommended links

    http://Windows.Microsoft.com/en-us/Windows/update-drivers-recommended-links#update-drivers-recommended-links=Windows-7

    Automatically get recommended drivers and updates for your hardware

    http://Windows.Microsoft.com/en-in/Windows7/automatically-get-recommended-drivers-and-updates-for-your-hardware

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • GANYMEDE + accounting issue

    Hi all

    I would like to know GANYMEDE-accounting option in cisco.

    We have deployed AAA machine which is Avenda in our network operation and able to enter orders accounting ONLY for valid orders. The GANYMEDE + also can capture invalid orders and sent to Avenda (our AAA machine)?

    Please help clarify.

    Hello

    It is a device-specific thing. In the case of IOS, it only passes the valid commands to the RADIUS server. Example - If we issue the command 'show the user' it will record it and if we run the command "show dog", it will not be logged.

    Hope that helps!

    Kind regards

    ~ JG

    Note the useful messages

  • 5 GB affected memory but at the level of the OS it is shows 3 GB Y?

    Dear team,

    One of the Rhel 5 32 bit VM, we assigned 5 GB of memory, but once we log and check the same at the level of the OS it shows 3 GB, need your help what is the issue /, it is showing 3 GB instead of 5 GB.

    concerning

    Mr. VMware

    Hi Mr VMware,

    Take a look at

    https://www.redhat.com/archives/redhat-list/2009-December/msg00146.html

    For more information.

    Many tx

  • There is a communication problem with the iTunes store

    Apple TV 3rd generation, software to update... Am able to stream my netflix watch, but I'm having issues playing a show via iTunes, yes one alone. I can play all the others. What does that mean?

    Thank you!!

    See if a reboot of your Apple TV helps.

    Go to settings > general > restart.

  • follow all the numbers listed entirely

    Hello

    in the column on the left side of the iTunes window where it shows for example that number piece is played in a particular selection, on my mac, not every number is registered. Before each issue was the show in its entirety, after that I must have clicked on something accidentally column now looks something like this:

    4271

    4272

    42...

    4274

    42...

    42...

    4277

    It seems to be no regular pattern, the numbers that appear entirely seem to be chosen at random. Another observation is that the column with the number does not have a position, even if I don't remember if that was the case before the problem arose.

    I tried to adjust the size of the column by dragging the column, open iTunes full screen and also removed some categories of view option to create more space for the numbers. Everything I tried had unsuccessfully, unfortunately, can someone point me in the right direction please?

    Thank you

    Someone else posted about it recently. I think there may be a way to adjust the font size in views or somewhere. Also report the problem to Apple:

    http://www.Apple.com/feedback/itunesapp.html

  • artist submitting the song "mastered for iTunes" by the authorized intermediary aggregator

    Catapult is listed with a check mark for 'controlled for iTunes' on the list of approved aggregators iTunes. https://iTunesConnect.Apple.com/Webo...ORS?ccTypeId=3

    When I read the FAQ of Catapult there was no mention of "controlled for iTunes' composed of a support issue and I showed a note that catapult does not support the 'mastered for iTunes' (contrary to what iTunes) and I was told that most of the artists and studios can 'mastered for iTunes' and that he belonged to the major artists +-.

    Catapult recommend, something like 2-channel stereo, 16-bit, 44.1 mHz, .wav.

    What happens if I knew better I could to iTunes instead of loudness wars, I am pull me in the foot somehow, and if so, it can be explained. as an artist, is not logical to control iTunes, if I ask listeners to choose my product rather than a major label which is the master for iTunes and sounds better, in part, because of this?

    How this mixture cannot be financed?

    Alison ;-)

    Your link is no good.

    http://www.Apple.com/iTunes/mastered-for-iTunes/

  • Can upload files, but cannot open or run

    Original title: open file exe

    pls help I can download anything, but it wont let me run or open. also, I can't open any files. (launch file showing damage) can someone help me find programs for this. Thank you

    Hello

    1. is the specific issue of the show? You are able to install other applications?

    2. did you last changes before the show?

    3. What is the operating system installed on your computer?

    4. you receive an error message or error code?

    5 a it works much earlier?

    6. you are downloading from the internet or copying from an external support?

    7. If you download from the Internet, can I know which browser you're talking about?

    Follow the steps to install or run any question:

    Run uninstall and reinstall correct and check for the issue.

    a. to do this run the FixIt tool from the following links.

    b. click on the link below and select run now button.

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    c. After you download and run for the first time

    d. Select run on window smallpop and select run on Internet Explorer-security warning window.

    e. Select detect problems and allow me to select patches to apply.

    f. Select installation.

    g. after the audit select the option you need to install and click Next to install.

    Hope the above information is helpful.

  • HP Pavilion dv4 Notebook PC: Ethernet card is not recognized

    Hello HP Nation,.

    Product number: WA6834A #BA

    Problem:
    -My computer sometimes connects to Ethernet, but most of the time it even will not recognize that I have an ethernet cable is plugged. Looking at my devices, there is no device listed for ethernet connections.
    (Attached picture shows my device manager to show something that I do not recognize under "Other devices", I'm not sure if it is my ENet adapter or not, as well as showing there be no ethernet adapter)

    Recent changes to the computer:
    I recently updated my Windows 10 Pro 64-bit OS.

    I tried the things:
    AlterNet router Ethernet cable/Port; Result = both cables and Ports worked successfully when connecting to another PC
    Troubleshooting troubleshooting windows network connection issues. Result = showed no available connection other than Wi - fi

    Does anyone have any suggestions?

    Try the Realtek 8111C directly from Realtek a second site in the list:

    http://www.Realtek.com.tw/downloads/downloadsView.aspx?langid=1&PNid=13&pfid=5&level=5&Conn=4&DownTypeID=3&GETDOWN=false

  • CQ61-313US startup HP alert battery, main internal battery (601)

    I have a CQ61-313US at startup I get HP battery alert, storage capacity of the main internal battery (601) low, remember to change - and it gives the website of HP.

    I don't have CMOS issues that retaining the date/time.

    My extended warranty company suggested I do the system recovery and if I still had the same error code, there may be something else wrong with my computer because I don't have CMOS issues.    They show Compaq error code 601 being something with the drivers of the computer itself, not a battery problem.

    So, when you're looking for batteries for my computer in the HP site - I just find the external battery bar - not an internal battery.

    I did a complete system restore, still getting error... Help!

    Hello

    Yes, that's correct.  Although the error seems to suggest the CMOS battery, it is in fact the battery located under your laptop.

    Kind regards

    DP - K

  • Adapter LAN question, "no access to the network.

    Original title: LAN adapter issue

    Hi all, when connecting my laptop to a switch of the LED on the switch is green which means connected. The IP address on the laptop is entered manually, but when will the cmd and issue ipconfig it shows "media disconnected" and the network adapter in the Control Panel indicates "no access to the network. It also indicates that "this device is working propoerly! Please advice

    Hello

    What is the number and the model of the computer?

    Remember to make changes to the computer before the show?

    Thanks for posting in Microsoft Communities.  The problem description, I understand that you can not connect to the Internet.  Correct me I misunderstood the question

    Follow these steps:

    Method 1: Follow these steps:
    How to troubleshoot possible causes of Internet connection problems in Windows XP:
    http://support.microsoft.com/kb/314095

     

    Method 2: Follow these steps:


    Step 1:
    renew DHCP Dynamic Host Configuration Protocol)
    a. click Start, click run, type cmd and click OK.
    b. in the command prompt, type ipconfig / renew
    c. Close command prompt.
    d. check the result.

     

    Step 2: Try to obtain an IP address automatically
    a. open Internet Explorer, go to Tools, click on Internet Options, connections, LAN settings.

    b. uncheck all boxes except automatically detect connection settings
    c. click OK to apply the changes.
    d. check if the problem persists.

     

    Method 3: If the methods above do not help, check if the wireless card is very well and try to update the drivers on the manufacturer's Web site.

    a. click Start and right-click my computer.
    b. Select Properties and then click the hardware tab.
    c. click on Device Manager and expand network adapters in the list.
    d. right click on the adapter, then click Properties.
    e. click the driver tab and click Update the driver.

    Please follow the steps and let us know if this helped.  If the problem persists, answer and we will be happy to help you.

  • Windows 7 does not recognize SimpleTech 250 GB external USB drive

    I read the threads on this topic, and I've not seen anyone else able to get this working.

    Just bought a new computer with Win 7.  Drive has worked on Win XP.  I checked in the Device Manager, but the real problem is that there is no driver for the Simple Tech drive.  They must have been purchased by Hitachi, simpletech is now a product and not supported.  Find it me hard to believe that an external drive USB 2.0 does not work with Win 7.  There must be another driver, that we can use to get this willingness to work.

    Try other USB ports, still does not work. Restarted, on or off before and after the restart... nothing etc issues.  It shows in the device with a yellow Manager!, but can't get any further.

    Interestingly enough it show a device "usb mass storage" under usb controllers.  See photo:

    Is it really possible that this player will work with Win 7?

    Thank you for your help.

    Hello

    According to the Windows 7 Compatibility Center, this disc is compatiblewith Windows 7.

    You must download and install any additional software to make it work with Windows 7. Click on the link below and download the software for your hard drive.
    http://www.HitachiGST.com/support/downloads/

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

Maybe you are looking for

  • The mouse pointer freezes except in Mode safe

    After I connect my mouse pointer (except in SafeMode) freezes and does not detect my mouse and can not use computer. whatcould happened and how do I use the mouse again normally? Original title: it does not detect the mouse

  • 2000-2d11DX HP: laptop loses connectivity wi - fi after hibernation/standby

    My laptop loses wireless connectivity once it goes into hibernation mode or "standby mode". I have to restart the computer for the laptop to resume the wi - fi signal. This does not happen with other laptops I have. What is the solution? Thank you pi

  • My mouse double click when I click it once?

    When I left click will be double click, why?  Is there a setting that isn't right?  It makes my life very difficult.  I have psoriatique and use the mouse more then anything can anyone help me please?

  • Windows Genuine Advantage Question and error in Vista

    Despite my constantly looking for viruses and malware, etc., my computer still worked worse all day since about 25/02/2011. Today [29/03/2011], I did a system restore to 28/02/2011 and received the message "change to your system. While looking for he

  • Event Viewer/Task Scheduler error message

    I get the error message "MMC could not create the snap" in Task Scheduler and Event Viewer. I tried various things, including a reinstallation of the .NET Framework, and nothing seems to solve the problem. Does anyone have any suggestions?