Page 1 of 1

Viewing HTML files does not work

Posted: 2013-06-07, 10:36 UTC
by HAL 9000
On my Sony Experia Pro with Android 4.0.4, TotalCommander in the version of 2013-02-14 is unable to open local HTML files in the browser. When I tap a HTML file, a dialog "Aktion durchführen mit" (perform action with) opens, I choose HTMLViewer (the only choice that is no text editor), which results in a white error page with some text including "Webseite nicht verfügbar" (web page not available). The displayed URL seems pretty unusual: content:://com.android.htmlfileprovider/mnt/sdcard/Document.html?text/html

As a workaround, I select from the URL the part of the file path, open Chrome, and build the URL file://mnt/sdcard/Document.html which works fine but is quite tediously :( when done often.

I would appreciate a lot if viewing a HTML file would work with 1-2 taps :-)

Posted: 2013-06-10, 12:54 UTC
by ghisler(Author)
Strange, what browsers did you try? Not all browsers can open local HTML files.

Posted: 2013-06-14, 09:41 UTC
by HAL 9000
Sorry, I can't tell you as I don't see any name I can recognize as a browser name - total commander and the task switcher tell "HTML Viewer", the title bar is empty, the menu button (rightmost hardware bottom) does not trigger anything (so also not an about dialog). The two screenshots do maybe help you to find out more: Image: http://www.pictureupload.de/originals/pictures/140613113943_Screenshot_2013-06-14-11-24-47.png and Image: http://www.pictureupload.de/originals/pictures/140613114020_Screenshot_2013-06-14-11-25-00.png Because it gives the hint to look in the Google cache, I assume it's Chrome.

Remark: The only installed browser I am aware of is chrome. It is not proposed by TC as handler for html files. It can open the file, as described, but only with file: - URL.

Posted: 2013-06-17, 08:51 UTC
by ghisler(Author)
This is the old Android browser (not Chrome). I wonder why TC is passing a content URL to it, this isn't normal - TC usually passes a file:// url to apps. I have just tested it on my Android 2.2 phone, and the HTML viewer opens local html files just fine...

Posted: 2013-06-21, 09:37 UTC
by HAL 9000
Thanks for the hint (old Android browser). I played with the configuration and added "internal links" (interne Verknüpfungen) to make TC open .htm and .html with the app "Browser". Now, HTML files are "directly" displayed in Chrome (without copy+paste+edit of the URL), just as expected :)