I want to open local files that are on my sdcard in the Android browser. How can I accomplish this?
In order to view local files on the sdcard with the default Android browser just enter
file://sdcard/ and then the path to the file you want to view. For example if you have an xml file named "person" in a folder named "xmlfiles" it would look like
file://sdcard/xmlfiles/person.xml in your address bar. You can create bookmarks for the file you are viewing but if you try to make a shortcut to that bookmark or use a bookmark widget (at least the HTC one) these will not work and may give an error "The linked program is no longer installed on your phone". The bookmarks will work if opened from within the browser.
So far I have verified that the browswer can open/render these files: xml, html files(htm), and image files
It cannot open pdfs.
According to this comment it works for Android 2.1 and above
Found a solution for the local file browser problem on my Xoom tablet
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.
You can browse the file system with Firefox for Android
protected by Community♦ Jul 26 '15 at 2:57
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?