|Android 29 October 2012 -|
This article is the Android sequel to the initial article about how to prepare an offline version of your web site for the purpose of demonstration or for exhibitions: Taking web sites offline for demonstration. If you didn't read the original article, please take some minutes (5 to 10 maximum) to gain a better understanding on the following. Thanks.
I'm going to describe my steps using a Samsung Galaxy Tab 10.1 running on Ice Cream Sandwich (ICS - version 4.0.4) but I would assume that any other Android-based device will show more or less the same results.
Put the prepared archive on your Android device
Well, the choice is yours... simply check out the Play Store for anything that looks like file manager, or explorer and you are up and running. Personally, I use either ES File Explorer or AirDroid to transfer files between my tablet and a PC or network, but any app is just fine! The Galaxy Tab doesn't have a slot for memory extensions but this could be an option, too.
After the succesful transfer, I simply extracted the archive in an accessible location and opened the start page of the web site, here index.html. In this case, ES File Explorer offers me to open the file with HTMLViewer, or even to create a Shortcut for faster access. Not too bad, but honestly that HTMLViewer app offers only limited functionality and doesn't provide any navigational buttons, like Back, Forward, Refresh, or Cancel. It's okay for a rough overview and quick check but it lacks some features.
Know your paths
"Don't think you are, know you are." - Similar to the checks we previously did on the various desktop systems it is also possible to work with special URLs or better said protocols in this case: file://
While you are still in your favourite file explorer you should be able to get a proper location of your HTML files. Please, either memorize the path or note it down and open your favourite internet browser. This could be the stock 'Internet' or Chrome on ICS or higher, or Dolphin, or etc. Then you enter the location of your files prefixed with file://mnt/, like so:
if you are using the internal memory.
Browser != Browser != Viewer
Don't be surprised if your offline web site appears differently on the various browser or viewer you are using. Following the same page various browser or viewer:
It's almost the same situation as on the desktop and there's room for interpretation of HTML and CSS - even on your Droid.
What are your experiences with creating or testing offline versions of web sites on your Android devices?
Parallel universe: iOS
Eventually, you might be curious about this episode might be on a new iPad running on iOS 6. If so, please feel free to read this article: Taking web sites offline for demonstration on iPad