How do I view HTML files from local storage?

Discussion in 'Android Tablet Usage, Tips & Tricks' started by CenturionFive, May 9, 2011.

  1. CenturionFive

    CenturionFive Member

    Joined:
    Dec 11, 2010
    Messages:
    73
    Likes Received:
    1
    Trophy Points:
    72
    Location:
    NULL
    I would like to be able to view .html files that are stored on local storage. I can open them in view mode within an android html editor, but I would rather tap on them in a file manager and have them open in Dolphin or even the default web browser. Is this possible?

    I am using a rooted Acer Iconia, so its OS is Honeycomb.

    Cen5
     
  2. beastman

    beastman Member

    Joined:
    May 8, 2011
    Messages:
    351
    Likes Received:
    7
    Trophy Points:
    87
    Location:
    Austin, TX
    Tablet / Device:
    gtab
    Use a file explorer, find the file, then open. For example, mine is file://sdcard/html/links.html
    Html is a directory on the sdcard.


    Sent from my PC36100 using Android Tablet Forum
     
  3. CenturionFive

    CenturionFive Member

    Joined:
    Dec 11, 2010
    Messages:
    73
    Likes Received:
    1
    Trophy Points:
    72
    Location:
    NULL
    I have tried that but for some reason it is not associated with a browser
     
  4. beastman

    beastman Member

    Joined:
    May 8, 2011
    Messages:
    351
    Likes Received:
    7
    Trophy Points:
    87
    Location:
    Austin, TX
    Tablet / Device:
    gtab
    I created a directory under sdcard named Html. I then created a html file named links.html.

    Next i opened the browser. In the URL I typed
    file://sdcard/html/links.html
    and it opened. What are you runing?

    I am running Cm 7 nightly build on a Viewsonic Gtablet.


    Sent from my GTablet using Android Tablet Forum
     
  5. jev

    jev Member

    Joined:
    Apr 12, 2011
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    62
    Tablet / Device:
    POV MOBii TEGRA 10.1"
    For this purpose, you can't beat Opera mobile. It's the only browser I've found that is able to open pages with a named tag (i.e.: file://sdcard/foo/bar.html#tagname).

    There is no uniform way to couple html files to a browser BTW. If your file explorer is able to make the connection html <-> browser, that is a feature of that specific file explorer.
     
  6. bartender

    bartender Member

    Joined:
    Dec 2, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    60
    I tried opening a local file with Opera by typing file:///mnt/sdcard/Documents/blabla.html. Opera changed the adress in file://localhost/mnt/Documents... Using the localhost syntax on the android browser opened the local file.
     
  7. bobbell

    bobbell Junior Member

    Joined:
    Feb 26, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    2
    I am a java barcode learner.I'm new to Android development.I want to load a html file into a webview.
    Note that there are so many relevant questions on SO like this, but they all deal with getting *.html from assets folder.
    But I want to load html file from local folder, say "D://abc.html" because if my html is around 10Mb then corresponding apk size also goes upto 10mb.
    Any help appreciated.
     

Share This Page

Search tags for this page
android local html
,
android open local html
,
android open local html file
,
android view html
,
android view html file
,
dolphin browser local file
,
dolphin browser open file
,

dolphin browser open local file

,
dolphin open local file
,

how to open html file in android

,
how to open html file in android phone
,
how to open html file on android tablet
,
how to read html file in android
,
how to view html files in android
,
how to view html files on android
,
open htm files android
,
open html file on android
,
open html in android
,

open local file in dolphin browser

,
open local html files android