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

Native Development

Reply
Developer
alopix
Posts: 416
Registered: ‎04-10-2011
My Device: Z10 LE & PlayBook

Camera access

Is is possible to access the PlayBook's camera with the NDK? I saw that the "capability" use_camera exists, but couldn't find any information about how to access the camera.

-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blogs /dev/alopix and /home/alopix
BBM Channel: C0047B612
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Camera access

Hi,

 

There is currently no support for device camera access from a Native application currently. Feel free to log a feature request using our external developer Issue Tracker (linked in my signature) so we can help you track it. Just reply back on thread with the logged issue's URL.

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
azazello
Posts: 40
Registered: ‎01-15-2012
My Device: Playbook Tablet

Re: Camera access

it's a bit strange - in NDK you have a possibility to refuse to use a camera API

<!--  <action>use_camera</action> --> (it's a copy from bar-descriptor.xml from  NDK-Samples/AccelerometerSample)
but don't have a API to use it.

/rgds
Andrey Yaromenok aka azazello
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Camera access

The bar-descriptor.xml is standard for all Tablet applications. AIR/WebWorks applications have access to the camera which is why this is included. The same permissions will work once camera access is available through native.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
azazello
Posts: 40
Registered: ‎01-15-2012
My Device: Playbook Tablet

Re: Camera access

if it's possible to use a camera in non-native envinroment, like AIR/WebWorks - whats a problem to make public this API(already used in non-native API, btw) to native community ?

/rgds
Andrey Yaromenok aka azazello
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Camera access

AIR and WebWorks both access the camera through Flash/AIR Runtimes, there are no APIs exposed for native yet but the request is submitted:
https://www.blackberry.com/jira/browse/TABLET-368

 

Feel free to vote this issue up!

 

Cheers, 

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: Camera access

Hi Alopix,

Native camera APIs are coming.  They will not be available in the 2.0 release, but should be available shortly thereafter.

 

Cheers,

Sean

Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: Camera access

[ Edited ]

azazello wrote:

if it's possible to use a camera in non-native envinroment, like AIR/WebWorks - whats a problem to make public this API(already used in non-native API, btw) to native community ?


To answer your question azazello,

The backend API that AIR and WebWorks are currently using is limited and not generally suitable for use by third party applications.  The camera infrastructure has been redesigned for native API support in order to enable rich camera apps which provide augmented reality, image processing, etc.  Look for it in a future release.

 

Cheers,

Sean

Please use plain text.
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: Camera access

Please allow us to get and set white balance, exposure, focus etc. in the API.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: Camera access


Innovatology wrote:

Please allow us to get and set white balance, exposure, focus etc. in the API.


All of those features will be available.

 

Cheers,

Sean

Please use plain text.