Viewing HTML files does not work

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Viewing HTML files does not work

Post 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 :-)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, what browsers did you try? Not all browsers can open local HTML files.
Author of Total Commander
https://www.ghisler.com
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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...
Author of Total Commander
https://www.ghisler.com
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post 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 :)
Post Reply