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

Reply
Developer
laurentC
Posts: 268
Registered: ‎02-05-2010
My Device: Blackberry Z10
Accepted Solution

Takepicture on the Playbook

Hello, 

I'm developing a webworks application for the Playbook. I'm trying to open the camera to  take a picture. I know it's possible because there is a takepicture function in the webworks api and it's available for the Playbook.

My problem is nothing happens when the takepicture function should open the camera. I get no error message, just nothing. I'm not sure how I can trace the execution of my application. Any idea? 

 

I've added<feature id="blackberry.media.camera" /> and<rim:smileytongue:ermit>use_camera</rim:smileytongue:ermit> on my configuration file. I'm not sure if the order of this two declarations is important???

 

Can you help?  Thanks.

Laurent


Twitter : @LaurentKP
My apps
Developer
ibarrera
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Takepicture on the Playbook

It happened the same to me when i tried in playbook simulator but it was because this simulator didn't have native applications. I don't know if this is your problem.
Developer
laurentC
Posts: 268
Registered: ‎02-05-2010
My Device: Blackberry Z10

Re: Takepicture on the Playbook

No it happens on the PlayBook.

I'm testing most of the features of my apps in a browser, then I package, sign and transfer the .bar on my tablet.

Twitter : @LaurentKP
My apps
Developer
shanerooni
Posts: 39
Registered: ‎03-01-2011
My Device: PlayBook

Re: Takepicture on the Playbook

have you checked the samples on github in the kitchenSink app?

 

try this link: kitchenSink

 

i'm pretty sure they have a working examples in there of using the camera.  just make sure you follow what they do.  if it doesn't work just ping us again and we'll figure the problem out.

 

 

Developer
laurentC
Posts: 268
Registered: ‎02-05-2010
My Device: Blackberry Z10

Re: Takepicture on the Playbook

Hey thanks that helps a lot. I was not aware of that github webworks samples.

I think my mistake is in my config.xml file.

 

instead of

<rim:smileytongue:ermit>use_camera</rim:smileytongue:ermit>
I need to write
<rim:smileytongue:ermissions>
<rim:smileytongue:ermit>use_camera</rim:smileytongue:ermit>
</rim:smileytongue:ermissions>
I'll do some tests later and keep you in touch.
Twitter : @LaurentKP
My apps
Developer
laurentC
Posts: 268
Registered: ‎02-05-2010
My Device: Blackberry Z10

Re: Takepicture on the Playbook

OK it works great now !  Thanks.

Twitter : @LaurentKP
My apps