navigator_open_file or another method for opening the local html file

Hello

Open file .html resourses app that I tried to use the navigator_open_file function.

The problem is that the browser cannot open it because of the access denied error.

So my question is how can I do this (open the location of application resources html file) in the other direction, or how to avoid the access denied error (I don't want to copy this file to another SD card or somwhere).

Can be in NDK also available something like webview control that can be used inside the application (this can solve the problem with access denied so )

Many thanks in advance,

Vitali

Hi vitali,.

I'll you link to a previous post on the same topic. Read it all, and you will understand what your options are, and what are the limits.

http://supportforums.BlackBerry.com/T5/native-development/using-Navigator-invoke-to-view-local-file-...

This thread should answer many of your questions. That being said, there is apparently a WebView control in stunts that could accomplish what you're looking for. However, I have never used, so I can't provide a lot of help. In addition, it requires BB10, which means it is for device Dev Alpha. If you develop for the PlayBook, you do not have a WebView available, and you will have to use methods that I mentioned in the link above.

Hope that helps.

Tags: BlackBerry Developers

Similar Questions

  • Many fonts render when Firefox opens the local html file

    I use a 3 rd-party program called Fontlist. He reads all the fonts in the Windows fonts folder and then uses a line of the user selected text to generate a html file on the hard drive that shows the line of the text displayed in each font. Because it is a program of the 3rd part, I have no control over it is programming html.

    When the generated html file is browsed with Internet Explorer, all fonts display correctly. When browsing with Firefox, maybe half or more fonts have a police-looking ordinary backup who suite. I was not able to discern any trend as to what type of font is displayed correctly or does not work.

    In the research online, the problem, I saw a hint that assigning false to security.fileuri.strict_origin_policy could solve the problem. I tried, and it had no effect. Also, in the advanced option to fonts and colors, I checked the box to let web pages to choose their own fonts.

    Would there be other parameters that would allow Firefox make virtually any standard font industry installed on the system? This can affect all 3 rd-party sources, not only Fontlist html files.

    The css generated by Fontlist puts no quotes around the family names of fonts, including those with a numeric parameter. This explains the part of chess, but not all.

    It is obvious that the html and css accepted by Internet Explorer is much more forgiving than FF.

    The Fontlist developer will have to address this issue.

  • Opening a local HTML file in your browser without triggering the Proxy credentials?

    I am trying to show my muse files locally by saving the HTML file on a network share accessible by various people, but this causes me problems with our proxy server.

    Whenever someone clicks on a page I get the proxy server titles pop up appears asking you for each members personal password etc...

    I checked the source code and can see that the following code is outwardly shouting at the catalyst for business could it be the cause of the problem?

    <!-JS includes->
    "< script type="text/javascript">".
    If (document.location.protocol! = ' :') https document.write ('\x3Cscript src = "http://musecdn.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type = "text/javascript" > \x3C/script > '); )
    < /script >

    Is there a way to disable all external links when you export as HTML in muse?

    I want to just run the Web site internally and do not need to search anything via the internet.

    I have many files requiring an update from time to time I don't want to have to trawl by code and remove this external link every time.

    This thing is fundamental to Muse how works and Muse always makes reference to the server-based versions. Do not hesitate to install a local version of jQuery and batch replace the text of the source code in an appropriate editing tool that would be for all purposes the simplest useful for text editors.

    Mylenium

  • What is the structure of the way, when I OPEN a local html file on my C drive?

    I downloaded html journal of WikiLeak afgan, which has links with the following format: "file:///afgan/type/air raid_0.htm". However, I put the files in a folder 'My Documents\WikiLeaks\HTMLfiles'. So now that the link does not work. What's wrong?

    This has happened

    Each time Firefox opened

    No, it's a path to a server and probably poorly formed, because in this case you have to 5 slashes.
    To locate a file on drive C, you must use
    file:///C:/documents and Settings / < user > /My Documents/WikiLeaks/HTMLfiles

    If the links are hard coded as you wrote them so it can be a lot of work to make it work.

    You can use a bookmarklet like this to fix the links in Firefox and save the page, if the links work:
    javascript:(function() }alert(j);})();
    You must change the variables S and R the appropriate file path.
    In the regular expression, you need escape to a ' / ' as '-/ ' and a period (.) as [...]

    See also https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Objects/RegExp

  • View the local html file

    How to do this. I tried what follows that works well on Windows, but fails on MacOSX:

    LrHttp.openUrlInBrowser (_PLUGIN:resourceId "doc.html")

    Ho YOU show a local help file (pdf or html format) cross-platform-compatible? Thanks in advance.

    I was not looking for "run" again, because I had in my mind that on windows, the application parameter can be omitted and on a Mac, you must give the application to run.

    That is right.  On Mac, you must use the 'open' program, that opens any file in its native application, for example

    Open "/ Users/username/Library/Application Support/Adobe/Lightroom/Plugins/PluginName.lrdevplugin/help.html".

    Here's the code that my file no matter what plugin uses to open any arbitrary file in its native application:

    If WIN_ENV then
    LrShell.openFilesInApp ({""}, file)
    on the other
    LrShell.openFilesInApp ({file}, 'open')
    end

    It occurs to me that I can't have explicitly tested with filenames containing spaces on the Mac, so I don't know if the function openFilesInApp() handles spaces correctly.   If it isn't, then you can always fall down and call LrTasks.execute () directly.

  • CC of Dreamweaver takes some time if I open the simple html files

    Hello

    for some time, CC of Dreamweaver takes awhile to open simple txt or html files.

    I think that 1 to 3 seconds. I don't know if there is a problem with the Mavericks BONES

    I think that before it was not.

    What can I do?

    At someonelese the same problem?

    Y at - it a DW CC update soon?

    Thank you for your answer!

    Best score

    I contacted the Support from Adobe.

    They gave me the tip to remove my Dreamweaver preferences.

    Then it works fine now.

    We'll see if the issue is resolved with this.

    Mark

  • Flash cannot call the javascript function in the local html file

    Hello!

    Us is to develop our first application on Playbook. It is an html file including a flash file and javascript code. Everything is packed in. in the file bar, a config.xml file and has been correctly loaded into the Playbook. Everything works locally (no web access)

    Everything works well except when we use an ExternalInterface.call("saveglobalscore",score) in flash that calls a javascript function in the .html file.

    In the actionscript3, we selected the "authorized local file access" and put the 'Security.allowDomain("*) '.

    Any ideas? Thank you!

    External interface tries to access the files packaged locally is currently a known issue.  I have not really of a calendar when or if this can be resolved.  It may be in the code base of flash.

  • local HTML-files in app browser without download in HTMLRescources.zip?

    Is it possible to display the local html file in the browser in app without download in HTMLRecources.zip?

    If I use the overlay web content Folio I choose a local html file. It will be displayed another property but unfortunately in a setting not in the in-app browser.

    Are there opportunities?

    The only way to do this is through the HTMLResources.

    Neil

  • Is it possible to configure Windows XP to open the LOCAL instead of the REMOTE file?

    It's just a matter of technology

    This is the situation: I wish Windows to open the local file previously synced in my hard drive, rather than opening the remote version, just like what happens when you work in offline mode. The reason is that I need to access the documents are big enough, and it works very quickly when I'm working offline, of course, but when I'm online, I would be able to work faster and the system should open the local version of the document, at least as long as the remote version is no different , or even if it is, it would be great to manually run synchronization but always opening the local version, thus optimising speed.

    Is this possible?
    Thank you very much in advance,
    Ivan.

    Hey

    Check the tips and tricks for remote desktop connection

    http://gegeek.com/gegeek_articles/remote_desktop_tips/remote_desktop_tips.htm

    See you soon!

  • Win 7 bypass login screen and opens the local administrator account

    Having a laptop computer on the school network.  During the initialization of the logon screen is bypassed, and opens the local administrator account, which is not well with the children concerned.  Even in Safe Mode.  Laptop configured from an image by using Hyper-V, all others ok

    Hello

    Thanks for the reply.

    If you have any other questions relating to computers on the domain network, you can post questions in the Forums TechNet Networking Windows 7: http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/threads

    Thank you.

  • Open Local HTML file in the browser to the app?

    Hello

    We have a question, we want to make a link to a local HTML file form in a DPS article, it takes the HTML file to open in the browser in application; We cannot use an overlay of web content for this feature. We are able to do this easily with the content of a source online by creating a link to go to the URL of the Web site in the URL section.

    Is it possible HTML form resources folder and can it be tested in adobe content viewer?

    Or better yet can we easily link to a local folder using the go to URL with a local file path? If so what would it be?

    Thank you

    Dream awake

    Yes, you can open an HTML file in a browser in app by adding the HTML file to the HTMLResources.zip. Create a button with an action to go to the URL that looks like this:

    HTMLResources/HTML_Local/index.html

    Make sure that you create your HTMLResources.zip file correctly and transfer it into the folder. You can test it in Adobe Content Viewer on iPad or on the desktop so that get you a glimpse of the folio (not article or page layout).

    Basically, you use the same technique to post a link to the HTML file that you use to post a link to the PDF files. For more details, see the application of DPS tips > Advanced overlays > linking to PDF files.

  • How can I set up Vista so that the PC does not switch to another window (for example the Spy Sweeper alerts) while I am playing a game?

    How can I set up Vista so that the PC does not switch to another window (for example the Spy Sweeper alerts) while I am playing a game?

    Vista is not in control of this technique. Spy Sweeper needs to have an option to control that. If this isn't the case, then it is badly programmed. Flight of focus (go to another window) when it is actually needed is a big no-no for the design. I find this option, if I were you :)

  • Error: Could not find the locale data files. Please reinstall when you try to open Facebook.

    Original title: locale data file errors... How can I fix it?

    can't the facebook home page and when I search the

    "Cannot find the locale data files. Please reinstall"pop box.

    Hi kjkin,

    1 did you change on your computer before this problem?

    2 are you able to access other Web sites correctly?

    3. what browser do you use?

    If you are using Internet Explorer, follow these methods & check if the problem persists:


    Method 1

    You can follow this link & check if the problem occurs:

    Can't access some Web sites in Internet Explorer


    Method 2

    You can also follow this link:

    How to delete the contents of the temporary Internet files folder?


    Reference:
    Internet Explorer does not start or stops responding

    Hope the helps of information.

  • just bought a new EOS 7 d mk2 camera but can't open the CR2 raw files in Photoshop CS5. I downloaded the new raw converter for the camera which is the DNG 8.7 format for my windows computer operated. When I click on a CR2 file I get a subventio

    I just bought a new EOS 7 d mk2 camera but can't open the CR2 raw files in Photoshop CS5. I downloaded the new raw converter for the camera which is the DNG 8.7 format for my windows computer operated. When I click on a CR2 file I get a notification to come as States "could not complete your request because the file appears to be a model of camera that is not supported by the installed version of camera raw.

    I'm entered in Photoshop and loaded the dates above, but have met 3 mistakes when you do this (1) Adobe Bridge CS5 4.0.5 (2) Adobe extension Manager SC5 5.0 update (3) 12.0.4 for Photoshop CS5 Photoshop

    I tried for 2 days now to try to get the operating system for your support/help will be most appreciated.

    My old camar is an EOS20 D and I have no problem with CR2 files it produce

    Hi rodaks, george

    Images II 7 d would be directly supported in Photoshop CS5 as requiring a new camera raw.

    So, you must download the free DNG Converter to convert these images to DNG and then open the DNG converted in Photoshop.

    See this link for download DNG Converter 9.0:

    For Mac: Adobe - Adobe Camera Raw and DNG Converter: for Macintosh: Adobe DNG Converter 9.0: thanks

    For Windows: Adobe - Adobe Camera Raw and DNG Converter: for Windows: Adobe DNG Converter 9.0: thanks

  • one of the icons at the top of my software is missing.   I have those for: open the safe, files, print, share files, customize, reminder, BUT THE ONE for SOULIGNANT A WORD or EXPRESSION IS MISSING, then delete the page, etc.  I have Acrobat Pro 10.  How c

    one of the icons at the top of my software is missing.   I have those for: open the safe, files, print, share files, customize, reminder, BUT THE ONE for SOULIGNANT A WORD or EXPRESSION IS MISSING, then delete the page, etc.  I have Acrobat Pro 10.  How to get back the icon and the missing function?  I would just reinstall, but I get the message that I don't have a legal copy of the program.  However, I bought and paid for it.  Thank you very much for your help!  Carolyn

    Add them to your quick tools. Go help > Quick of the tool.

    I've added these tools to my quick tools, as follows:

    Also see this article: Adobe Acrobat X Pro * databases the workspace

Maybe you are looking for