02-29-2012 02:33 AM
I have two questions about accessing camera API on Playbook:
1. How do I add any custom icons or controls on top of camera? In other words is there a way to overlay something on top of the default camera view? example: Like a custom zoom control or something.
2. Is there a way to embed the camera view inside a DIV element. The takePicture() API takes over the entire window of the Playbook. I want it to be within a DIV within the app's main window
Appreciate if someone can give some pointers.
Solved! Go to Solution.
03-05-2012 02:04 PM
1. Yes this can be done - here is some sample code:
Example of an app overlaying uI objects onto the camera:
2. No, not within a DIV. The blackberry.media.camera API launches a new screen which displays the camera.
03-05-2012 06:29 PM
Adam: Thanks for responding.
I saw this Adobe Air sample before. I was wondering if there was a way to achieve this with Webworks SDK. If this is not possible with Webworks then alternatively if I were to write an Android app using camera functionality would it work if I convert it to a Playbook app?
03-06-2012 08:51 AM
In WebWorks, you can launch the camera view window (separate window displayed on top of your application) but not embed the camera within WebContent of your app.
Sorry, I can't speak to what can & can't be done in Android as I am not an expert developing those apps. Not all features of Android are supported (not sure if camera is or isnt availalbe within the BlackBerry runtime for Android).
Do you have an existing APK? if so, its best to test its compatibility using the following compatibility test: