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.

inside custom component

Web and WebWorks Development

Reply
Regular Contributor
Posts: 64
Registered: ‎06-16-2011
My Device: bold 9000, playbook
My Carrier: vodafone

Accessing directories and files .

Hello experts,

 

I am developing an app which is having multiple HTML pages ,  I am unable to access music directory from different page except index.htm I have included <feature id="blackberry.io.dir" />  in config.xml . Any solution?

 

 

Thanks in Advance,

Sandesh. 

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Accessing directories and files .

Do all of your pages exist under the same domain?  If not, you will need to make sure they as well as the blackberry.io.dir feature are properly whitelisted in config.xml.

 

Can you see any runtime errors in Web Inspector when you try to access the file system on pages other than index.htm?

 

To confirm - you should certainly be allowed to use this API from any *.html file in your project (e.g. KitchenSink sample app has a Directory API and File API demo page)

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.