Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 39
Registered: ‎09-02-2011
My Device: Curve 9300
My Carrier: Tigo

BB10 Testing camera

I'm building an app and I want to provide the user with the option of taking a picture and displaying it on a <img> element.

 

I'm using the documentation function takePicture() and suppose everything will be fine. But how do I test it??
In Ripple it simply says "blackberry.media.camera object is undefined." and in the Blackberry 10 Dev Alpha Simulator, nothing happens.

 

Fiddle here

 

How do I test my app?

Highlighted
Retired
Posts: 115
Registered: ‎06-06-2011
My Device: 9800
My Carrier: Rogers

Re: BB10 Testing camera

your code is incorrect - here is an example

https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/camera/app

basically you can use
<input id="picture" type="file" accept="image/*" capture="camera" style="display:none;">
@nukulb
Contributor
Posts: 39
Registered: ‎09-02-2011
My Device: Curve 9300
My Carrier: Tigo

Re: BB10 Testing camera

Ok, thanks! I got it to work.

 

Since I don't have a BB device with me, in this example, when you take a picture, the file gets saved and THEN shown on screen? If so, how do I get the file path?

 

Thank you