06-20-2012 03:09 AM
To open .html file from app resourses I tried to use navigator_open_file function.
The problem is that browser can not open it because of access denied error.
So my question is how can I do this (open html file from application resources location) in other way or how can I avoid this access denied error ( I do not want to copy this file to sdcard or somwhere else ).
May be in NDK also available something like webview control that can be used inside application (this can resolve issue with access denied aswell )
Many thanks in advance,
Solved! Go to Solution.
06-20-2012 03:16 AM
I'll link you to a previous post on the same subject. Read it completely, and you'll understand what your options are, and what the limitations are.
That thread should answer a lot of your questions. That being said, there apparently is a WebView control in Cascades that could accomplish what you're looking for. However, I've never used it, so I can't provide much help there. Moreover, it requires BB10, which means it's for the Dev Alpha device. if you're developing for the PlayBook, you do not have a WebView available, and you'll have to resort to the methods I mentioned in the link above.
Hope that helps.
06-20-2012 03:37 AM
As I understand there is no any "normal" solution for this issue on PlayBook.
So I think I will use "shared location" variant, a little bit messy but what can we do .
06-20-2012 03:44 AM
No problem. I'd appreciate it if you could like my post and mark it as the solution. It'll help others find it later.
Also, I've written code that creates a server inside the app for the browser to open webpages from. It works extremely well, and allows you to ensure all of your webpage data is held inside your app's sandbox. It's not as hard as it sounds.