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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Developer
alopix
Posts: 316
Registered: ‎04-10-2011

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 blog /dev/alopix
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,941
Registered: ‎10-16-2009
My Carrier: Bell

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 Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
azazello
Posts: 40
Registered: ‎01-15-2012
My Carrier: MTS

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
gbeukeboom
Posts: 1,941
Registered: ‎10-16-2009
My Carrier: Bell

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 Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
azazello
Posts: 40
Registered: ‎01-15-2012
My Carrier: MTS

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
gbeukeboom
Posts: 1,941
Registered: ‎10-16-2009
My Carrier: Bell

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 Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 550
Registered: ‎11-29-2011
My Carrier: other

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: 550
Registered: ‎11-29-2011
My Carrier: other

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,137
Registered: ‎03-03-2011
My Carrier: Vodafone

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: 550
Registered: ‎11-29-2011
My Carrier: other

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.