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

New Contributor
Posts: 3
Registered: ‎09-13-2011
My Device: BlackBerry Bold 9000
My Carrier: design

I cant take (shot) a picture with webwork?

[ Edited ]

my code is simple (launch the camera) but i can't take any picture, because the trackball doesn't respond


<script type="text/javascript">     


var args = new blackberry.invoke.CameraArguments(); 

args.view = 0; // Video Recorder      


blackberry.invoke.invoke(blackberry.invoke.APP_CAMERA, args);  // Video Recorder Application



<div id="photoDetails"><button onclick="takePicture()">Take Photo</button>

<div id="videoDetails"><button onclick="takeVideo()">Take Video</button>

Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: I cant take (shot) a picture with webwork?

I believe this is the API you are looking for:



Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter