OT: How to load and view html on Android phone?

Matt Graham mhgraham at crow202.org
Fri Mar 20 13:35:07 MST 2015


On 2015-03-20 12:43, Ed wrote:
> https://android.stackexchange.com/questions/40771/local-files-revisited-opening-local-html-files-file-path-to-file-in-chrome

On Android, storage is weird.  Each installed application has its own 
"internal storage" directory which only it can read and write.  
Applications usually request "read/write external storage" permission as 
well.  "External storage"[0] is typically a FAT32 partition, and in the 
android device in the URL above, that partition is mounted on /sdcard 
.[1]

You *should* be able to have HTML document trees saved to this external 
storage partition and get to them with file:/// URLs.  Firefox on a real 
computer can do this with most pages if you go to a page and do 
File->Save Page As and select "web page, complete" from the dropdown 
which defaults to "web page, HTML only".  This'll create a NAME.html 
file and a NAME_files directory full of images/CSS/JS/other.  Then 
transfer NAME* to somewhere on your android device's external storage, 
and put a bookmark to file:///mnt/extsd/my_html/NAME.html inside your 
favorite android browser.  Nothing server-side will work in this case; 
hope you don't need that stuff.

[0] Historically an SD card, but "new and improved" devices may not 
have microSD card slots and fake it with some non-removable internal 
flash memory.
[1] Mine's on /mnt/extsd/ .  YDeviceMV.

-- 
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.


More information about the PLUG-discuss mailing list