12-29-2011 02:37 PM
I have tried to run to the following audio recording examples:
https://bdsc.webapps.blackberry.com/html5/apis/bla
I saved the code into an "index.html' and created a simple config.xml to grant shared files access.
I have successfully built the application and deployed onto my playbook.
When I click "record" button on the application, it gives me the following JavaScript Alert:
Record, e:'undefined' is not an object.
I did a search and didn't find any related topics.
Also, I think this may have something to do with using google's api.
I have read about how to add features in config.xml, but I can't find a helpful example to tell me how I know where do I find the feature elements' details from "google" or other places.
Thanks!!
Solved! Go to Solution.
12-29-2011 03:42 PM
Silly me.
Forgot to put
<feature id="blackberry.io.dir" />
in my config.xml.
But there's another question:
When will we need to access features under external domains? And how can we find out information (i.e. id) about these features from external domains?
i.e.
<access uri="http://www.somedomain.com" subdomains="true"> <feature id="blackberry.app.event" required="true" version="1.0.0"/> <feature id="blackberry.invoke" required="true" version="1.0.0"/> </access
I don't understand the above code
.
Thanks a lot!
01-03-2012 03:41 PM
Hi cuixu66,
You would need to access fetures from external domains when you are running javascript from those domains.
For example if you had the following piece of code to go with yours
<script type="text/javascript" src="http://www.somedomain.com/someJs.js"> </script>
This would then mean that "someJS.js" can use event and invoke APIs.
Does that make sense?
button below the post(s)