05-15-2011 10:50 AM
Hi,
From the documentation of APIs i found that camera API can be used to invoke camera from an app. So, can this be used to capture an image which will then save the image taken into shared folder of playbook? If so how will i know the name of the file that is last added to camera folder in shared location? Please help me out with this.
Thanking you in advance,
Praveen
Solved! Go to Solution.
05-15-2011 02:54 PM
Right now there isn't a way for you to find out which picture was just taken. We have a takeAPicture() API that will allow for this in about a month or so..
05-25-2011 03:58 AM
There is one way to get the picture that you take with the device.
You should use the Phonegap framework http://www.phonegap.com/
They provide specific function wich allowe you to get the URI of the file or the data directly.
(But if you get the data directly there is a memory issue)
One other way is to code your own API in Java and add in the web works. (If you choose this solution and you success, I would be very interested in the result)
Regards
05-25-2011 07:25 AM
garciaf wrote:
There is one way to get the picture that you take with the device.
You should use the Phonegap framework http://www.phonegap.com/
They provide specific function wich allowe you to get the URI of the file or the data directly.
(But if you get the data directly there is a memory issue)
One other way is to code your own API in Java and add in the web works. (If you choose this solution and you success, I would be very interested in the result)
Regards
Hi garciaf,
You are correct that PhoneGap has this API for smartphones, but they don't yet have support for Tablet OS. And on Tablet OS you cannot create an extension using Java since there isn't a virtual machine on Java. You would have to create an extension using ActionScript
The takePicture() API is getting even closer now for PlayBook and Smartphones. You can see what the API signature will look like in the jsdocs found here:
https://github.com/blackberry/WebWorks-API-Docs/bl
This will be the API signature used for both Tablet OS in the "Delta" release and in the Smartphone "Epsilon" release:
https://github.com/blackberry/WebWorks/wiki/Roadma
05-25-2011 09:28 AM
Sorry
You are right I just work for the smart phone and not for the playbook device.
By the way the Java Virtual Machine is plan for playbook ?
Thanks
05-25-2011 09:31 AM
garciaf wrote:
Sorry
You are right I just work for the smart phone and not for the playbook device.
By the way the Java Virtual Machine is plan for playbook ?
Thanks
RIM still hasn't announced timelines yet
05-25-2011 12:43 PM
Hi,
May I know when this new API will be added to existing SDK? Or is it available to use now?
Thanks
Praveen Rajan
05-25-2011 12:54 PM
It should be available in the first part of June
05-28-2011 05:51 AM
@Tim Neil
Thanks for the quick response.
06-10-2011 04:42 PM
@Tim Neil
Any updates on the Camera API module?
Thanks
Praveen