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
Trusted Contributor
lathajagan
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel
Accepted Solution

invoking camera application/Gallery application from bb10 webworks application

hi,

in my application which is based on webworks and its targeted for Blackberry10 OS, how to invoke camera and gallery application.

can i somehow invoke it with the help of  blackberry.invoke.invoke api pointing to camera or gallery, please let me know.

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: invoking camera application/Gallery application from bb10 webworks application

 

You can use the invoke framework of course check out the following page for more details:

 

- Camera: https://developer.blackberry.com/html5/documentation/camera.html

- Gallery: this is a bit trickier, but you can invoke it generally through the app target as follows:

- action: "bb.action.OPEN", target: "sys.pictures.app"

 

If you would like to, you can use the card for the camera as defined here:

 

- blackberry.invoke.card.invokeCamera

- https://developer.blackberry.com/html5/apis/blackberry.invoke.card.html

 

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
Trusted Contributor
lathajagan
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: invoking camera application/Gallery application from bb10 webworks application

thanks, i missed reading the BB10 document properly. i will try the same and let u know how it is working in BB10

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: invoking camera application/Gallery application from bb10 webworks application

you can find the sample example at Blackberry git hub repo. rite now i don't remember repo but you can explore. search with BB10 API example you may get.

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.