12-06-2012 06:10 AM - edited 12-06-2012 06:11 AM
I want to invoke native Camera in my BB10 dev alpha device having OS upgraded to the latest 10.0.9-beta-4.
I've webworks OS 126.96.36.199, the latest release.
Making use of blackberry.launch API
example snippet and link: https://developer.blackberry.com/html5/documentati
<html> <body> <div id="camera" onClick="blackberry.launch.launchCamera()">Click here to start the camera application on your BlackBerry device!</div> </body> </html>
I've included the webworks js..
I'm getting exception : 'undefined' is not an object.
Can anyone please help?
12-06-2012 06:15 AM
It helps. I've tried this. but I wanna make use of blackberry.launch API. The reason is It has provided many more things like invoking Map, location, SMS etc. Invoking all these fails in other ways..so wanted to give a try to blackberry.launch
12-06-2012 06:19 AM
blackberry.launch is not supported
you can use blackberry.invoke to invoke anything on device, maps or email or anything you want with many options.
12-06-2012 06:41 AM - edited 12-06-2012 06:42 AM
Following is what I've been trying for using email feature. but not working. " 'undefined' is not a constructor. "
var args = new blackberry.invoke.MessageArguments('email@example.com
args.view = blackberry.invoke.MessageArguments.VIEW_NEW; // New
Same in case of invoking Maps..
var args = new blackberry.invoke.MapsArguments(43.26, -80.30);
Want access to Messages and Call log as well. but couln't find anything useful. || Getting access to Camera, card, Browser, Contacts & Calendar. Have already posted these queries on this forum. Din't get any help