All API new camera

Hi, I'm doing a button for my application that pulls the camera...

I am using the new API, which is included in version 2.1 of the SDK...

I work with an example that I found in this forum

function takePicture() {
  try {
    blackberry.media.camera.takePicture(successCB, closedCB, errorCB);
  } catch(e) {
    alert("Error in supported: " + e);
  }
}

function successCB(filePath) {
  alert("Succeed: " + filePath);
}

function closedCB() {
  alert("Camera closed event");
}

function errorCB(e) {
  alert("Error occured: " + e);

But I do not understand the first argument... When I run the program, it works and it draws from the camera, but when I capture the image... nothing happens, and the only thing I can do, it's the camera NEARBY... So, when I close it... He runs the closedCB function

Hi emsbenitez,

Have you looked at this post specifically point to code that should work. The problem with the API is that the alert will not be displayed while the application is in the background (which is while the camera shows).

Tags: BlackBerry Developers

Similar Questions

  • New camera Panasonic AG-DVX200... questions.

    OK, I just got the new camera and I'd like some advice looks the better informed on the web. I used a camera JVC (700U) for the years record in .mov format. When they are imported into FCP X everything went great with no transcoding at all. New records of the camera in the format .mov so, but all the clips start transcoding when importing. Why would it be? My ignorance of basic codecs watch but now. The old camera (JVC) had the opportunity to record in 720 p I used most of the time. The new camera does not have this option, so I record in 1080 p. It is still .mov so why transcoding? I'm lost.

    Thanks in advance.

    See you soon.

    Tom

    Thomas Whaley wrote:

    .. l but all the clips start transcoding when importing. Why would it be?...

    did you optimize/Create Proxy when importing?

  • Microsoft Lifecam crashes when I start it. Windows XP SP3. Brand new camera. So frustrating

    New camera, then install the process, worked well.  Crashed every time.

    LifeCam.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.

    AppName: lifecam.exe AppVer: 3.20.259.0 ModName: kernel32.dll
    ModVer: 5.1.2600.5781 Offset: 00012afb

    Try this:

    1. click on start and then click Control Panel.
    2. click appearance and themes.
    3. click on display.
    4. in the settings tab, click Advanced.
    5. on the Troubleshooting tab, move the hardware acceleration in the third position (from left to right), and then click OK.

    Note the following message is the description of this post:
    Disable all accelerations DirectDraw and Direct3D, as the cursor and advanced drawing accelerations. Use this setting to correct severe problems with DirectX accelerated applications.

    6. click OK to close the display properties dialog box.

  • New camera EO rebel 5 T5.

    Husband told me days new camera Canon EO5 rebel T5 2. Whenever I take a photo fast internal flash very bright in the eyes of the person, I take the picture of. Fast flashing happens all the time. Cant seem to find how to fix this. Almost ready to return to this camera. Frustrated.  Another camera I have I have never had this problem.  Any HELP

    I don't have a manual for your camera, but it looks like you have Auto Focus help on & the camera uses these flash chips to help them focus in low light. Check your manual for it & turn it off to make sure it is what it is.

  • Looking to intensify my t2i and need advice on the new camera

    I've been using my t2i and need help to decide what new device purchase.  I use a canon 100-400 F4. 5 lenses that I love.  I mainly shoot birds in flight and the nature.  Now, my camera did a great job, but I'd like something that looks better with a high ISO setting.  I only use the manual settings and love my back focus feature, so a new camera would also have this. My price range is less than $2,000.  All advice is appreciated.

    Go full frame will give a lot of artificial scope. Regarding the high ISO of 7 2, I saw some very impressive samples drawn by 12 800.

    http://www.FredMiranda.com/forum/topic/1356768

    http://www.FredMiranda.com/forum/topic/1355985

    You can work your way back through this thread for a lot of high ISO shots of different cameras too.

    http://photography-on-the.NET/forum/showthread.php?t=1308983&page=90

  • change the program window or compatible to my logitech camera, or I guess I have to buy a new camera

    I have Windows Vista 32 bite, but vista will not work with my quickcam 5.6.1 so I can change for windows 98

    http://www.Logitech.com/index.cfm/support_downloads/downloads/&CL=au, EN? modelsearch = yes & modelNumber = quickcam + 5.6.1 & submit = Submit

    There is no results on your Quickcam Logitech at the link above.

    See what the Vista Compatibility Center said about this:

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    Windows Vista Compatibility Center

    First thing to do is to check its Vista compatibility at the link above, and if not to see what patches/solutions are available from its manufacturer...

    If the above is ZERO, the time to buy a new camera.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    You're probably thinking goes in this direction:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

    It works for some programs, but not all.

    This applies to software programs, NOT hardware drivers.

    See you soon. Mick Murphy - Microsoft partner

  • The cs5.1 upgrade, I can't read my new camera files

    Hello

    I have been using ADOBE for cs3 and I am currently using cs5.1 right now.

    I recently bought a new camera (Fuji XT-1) that my course photoshop and camera raw cannot read without converting my RAW files to dng files (which I don't want to!). My research on the Internet I discovered that I need the latest version of my creative suite to be able to do this. How can I go about it? Is it possible to upgrade or do I have to buy another creative suite all over again (I hope not because the cost of a whole new suite with the cost of the new camera would be a great success). I really hope that there is a method of upgrade, if so could you let me know where to and how much it would cost me.

    Thank you

    Hi Derek,.

    The Fuji X - T1 requires Adobe Camera Raw 8.4 or Lightroom 5.4.

    Devices supported by Adobe Camera Raw

    Adobe Camera Raw 8.4 was part of the release of Photoshop CC, is therefore not compatible with Photoshop CS5.1.

    Camera Raw plugin and Adobe application compatibility

    You have two choices that are available to you using Adobe software:

    1 pass for a creative cloud subscription and access the latest version of Photoshop.

    2. use Adobe's DNG Converter to convert your files in raw format from Fuji to the DNG format, which can then be opened with your current version of Photoshop and Adobe Camera Raw. Refer to the section "downloads" of this page:

    Digital Negative (DNG), Adobe DNG Converter | Adobe Photoshop CC

    You can of course also use software Fuji to convert your raw files, or turn in JPG or TIFF format as an alternative.

    Mike

  • CS6 no longer support new cameras?

    Hello!
    I may not be the only one here has a problem with the software offered only by monthly payment. As a professional photographer, I used ADOBE Photoshop and Lightroom products for many years and was happy with it.
    As I bought two new cameras (Nikon D5 and D500) I am very disappointed to know that my Adobe Creative Suite Web & Premium with Adobe Photoshop CS6 extended inculded version is not able to open files from this camera more...
    So if there there is no solution as a "backdoor" to open files or Adobe software that can be purchased without paying monthly fees, but just like the 'good' old days once I is obliged to find other software products and let Adobe as a customer...

    Would be happy to know, I am mistaken and there is still a chance to get the support I need!
    Oliver

    If you don't want to join the Cloud, download the free Adobe DNG converter, convert all the Raw files to DNG format change the DNG in CS6

    Digital Negative (DNG), Adobe DNG Converter | Adobe Photoshop CC

    Adobe Camera Raw Photoshop Lightroom compatibility troubleshooting

  • Cannot open the Canon 80 d Raw files PSE11. Have downloaded DNG Converter, but it does not work. [was: new camera, the old version of Photoshop Elements]

    I have a new Canon EOS 80 d camera and Photoshop elements 11 will not open to raw files. Following the instructions online, I downloaded dng converter 9.5, which is supposed to update Photoshop for this device. But it still doesn't work. It is unclear what I see online (and there is no number to call for support) If a later version of elements is needed to do this, or if items is even helped at all by the converter of 9.5. -What for the full program of Photoshop? Any suggestions? I spent a few hours on this today, and it's frustrating. After Nikon to Canon this round and so they need new lenses, filters, etc., I have not exactly cash remains for a new program of camera as well.

    I downloaded dng converter 9.5, which is supposed to update Photoshop for this device.

    The DNG Converter does not update Photoshop Elements.

    The DNG Converter is a free utility provided by Adobe to convert files to DNG files your Camera Raw files. Then, you change the converter's resulting DNG files in your version of Photoshop Elements.

    Camera Raw: How to use Adobe DNG Converter - YouTube

    I have not exactly cash remains for a new program of camera as well.

    In this digital age, always the factor of the cost of an upgrade software with the cost of a new digital camera. A good camera filter will cover the cost of the upgrade of the software.

    One of the benefits of the Cloud Adobe is that updates of the new cameras are included in the membership fee with no additional cost.

  • try to update the new camera raw closes

    Try to update the new camera raw for LR update but instantly closes. I tried to update through PS and BR, but same result. I have an IMac 10.9.5 and everything is updated

    First of all, you can not "up-to-date new Camera Raw for Lr" Lr actually uses the ACR. If built in interface. Also, what version of Photoshop are you using? Here's the latest plugin, which does not work with and the version of Ps prior to CS6: Installer of plug in Camera Raw

    Benjamin

  • How to get rid of out-of-use devices of ADE so I can allow my new camera?

    My A.D.E will be n ot allow my new Kobo e-reader.  When I try it says that there are already too many permissions.  How can I get rid of the (unauthorise) out-of-use devices, that is to say my previous two and now obsolete kobo e-readers of ADE, so I can allow my new camera?

    You need to speak with the service from Adobe.

    It will delete ALL your records, and you must reregister those you want.

    For some reason, Adobe isn't any sensible system online to view/edit the records.

    http://www.Adobe.com/support/digitaleditions/supportinfo/

    and open a cat.

    FAQ information to

    http://www.Adobe.com/UK/products/Digital-Editions/FAQ.html

    See "What is the maximum number of computers and devices that I can activate?"

    who sends you

    http://helpx.Adobe.com/digital-editions.html

    that gets you finally ('contact support' to)

    http://www.Adobe.com/support/digitaleditions/supportinfo/

  • labels Firefox all tabs 'new tab '.

    labels Firefox all tabs 'New tab' - shows the favorite icon but not the domain of site

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode safe or make changes.
  • When implementing my new iPhone, I logged into my old iCloud instead of choosing "set up as new iPhone" is there a way I can do this again? All my news from icloud is on my phone. All applications that I never downloaded and every pic ive taken. I don't w

    When implementing my new iPhone, I logged into my old iCloud instead of choosing "set up as new iPhone" is there a way I can do this again? All my news from iCloud is on my phone. All applications that I never downloaded all the photos I've ever taken since 2005 and I want to restart without remove ALL account iCloud himself. I always want to do a backup, I don't want it on my phone. I want to start fresh on my phone, but I tried to reset my phone under settings. I have just reset settings that did not 'you can't cancel it "because I don't want to lose all the photos I've ever taken." I always want to iCloud saving it just in case I need it someday, but I don't want any of this on my phone. I tried all means of security who do not say "you can't cancel" I still images and apps on my phone.

    Hello

    Turn off find my iPhone in settings then restore the iphone to factory settings.

    Now configure iphone as a new iPhone.

    See you soon

    Brian

  • Ive had my iphone since June 2015 6. I connected for the first time on my Mac tonight. By mistake I have synchronized/restored to my old settings of the iphone 5. Ive lost all my new photos and messages, etc. A way to get them back or I've lost?

    a iphone 6 from June 2015, many new photos, messages etc. on it.

    plugged into my mac tonight for the first time and accidentally restored to my old settings of the iphone 5.

    Ive lost all my news photos, messages, etc.

    They are gone forever, or is there a way I can restore back.

    Thanks for your HELP Please!

    # No, if you didn't have it supported up to iCloud or another computer. You cannot undo a restoration.

  • I can do something that would cause all the new sequence files to have the same local variables?

    I would like to add local or drop some variables global to all the new sequence files I create. I was hoping that I could simply add the variable to the process template and make it appear whenever I created a new sequence or in any order who have used this process model, but it doesn't seem to work.

    Does anyone know a way to do what I'm doing?

    Thank you.

    Skeptic,

    If you use TestStand 4.0 and later versions, you can create a sequence model by adding a sequence selected in the models pane of the TestStand sequence editor.  You can then use this template to create all your future movies.  Once you configure the model you like you will be easy to reuse this sequence skeleton again.

Maybe you are looking for