Offliner Application

Offliner is an Android app initially made solely for viewing of the ZIP archive of the official Android Developer Docs. It is also capable of browsing other archives created in the same fashion.

What are the Offliner main features?

  • The last page and its position are always saved
  • All files are stored compressed inside an packed ZIP files. (Ever tried copying 20 000 files to SD card?)
  • Free, without any ads or tracking, no permissions (except for reading storage). It has no access to the internet yet it allows you to open external links in your browser.
  • Plain and simple design
  • No issues with JavaScript or CORS as all content is served from original domains https – all interactive page components work
  • Pages like are unusable in the Chrome browser as they can’t be scrolled horizontally yet they work fine in Offliner

Each fresh start of Offliner can take from few seconds to half a minute depending on your device storage speed and archive size. Use the faster internal memory for storing archives if you want faster loading.

But nothing’s perfect. There are some areas that can be improved:

  • Support for wget “–restrict-file-names” to be able to create an archive from Windows machine (it’s filesystem restriction so this includes Cygwin as well)
  • Support for httrack “small query string MD5”
  • Proper mime type and response code support instead of guessing type based on file extension
  • Add support for fullscreen videos
  • Investigate possible performance issue when playing embedded html5 videos
  • Possible (compatibility) problems with a workaround for getting file uri from content uri of a selected file (underlying library requires it for use with RandomAccessFile). Resolved by using 3rd party file chooser
  • Cache the latest visited content unpacked to internal memory for faster startup (zip loading in background)

To keep things simple, I have no plans adding in-app downloader as even wget/httrack are far from perfect.

Get it on Google Play

Your feedback is welcome. Please let me know how you use Offliner. Join the discussion at

Available Archives

Android Developer Docs

  1. The official zip from Google, 400 MB, released in 9/2016. By downloading this, your agree to the Android Software Development Kit License Agreement. (The download link can be found inside this XML:
  2. Custom wget mirror of, 1200 MB, 7/2017. This is the full copy of both sites, containing many pages not available in the official offline documentation.
    Download (Android File Host):
    Download (!nlJzUBrQ!tA_mIiwFqRh1OpxxTUK8QOu-180PdD5-_V-pmw03R4w
    Download (MediaFire):
  3. mirror of, 59 MB, 8/2017. Checkout great Bash scripting guides.
    Download (Android File Host):
    Download (!axBxGQKZ!L2FxZBVGnCVJiW0izd7YF87_VAmxB2ALFuJP9ZOWTC8
    Download (MediaFire):

Please note that not everything may work and plenty of links lead outside. But there’s a LOT of content and the majority of it works (including Training, API Guides and other Guidelines).

It it ok to provide these archives? Majority of the content on and is released under Creative Commons or Apache licenses. The whole intention is to have access to the education material that is already available for free. There are no ads in Offliner nor these sites. Search engines or sites like already provide copies of web sites. That said, everything should be fine.

Custom Archives

These are examples of how the archives were generated. It’s best to use wget 1.18 or newer (I used 1.19.1) and gzip decompression proxy.

# Creates mirror of the and sites

wget --mirror --execute robots=off --page-requisites \
	--execute use_proxy=yes --execute http_proxy= --execute https_proxy= --no-check-certificate \
	--reject-regex "\.html\?hl=" \
	--reject ai,psd,sketch \
	--span-hosts,,,,, \
	--limit-rate=250k \

# workaround for wget not fetching images referenced from JS file
grep -Poh '(?<=["'\''])[\/]?images\/[a-zA-Z\/\-\_0-9@]*\.(jpg|png|gif|svg)(?<!["'\''])'\?v\=201* | sort | uniq > img
sed -i '/^\//! s/^/\//g' img
sed -i 's|^||' img
echo "$(sort img | uniq)" > img
wget --force-directories --input-file=img

# this should not be needed but not tested yet
#grep -Poh '(https://[a-zA-Z\/\-\_0-9@\.]*\.svg)'\?v* > img
#wget --force-directories --input-file=img

# fetch JSON files required by the icon app
wget --force-directories
wget --force-directories

# remove folder with single index.html file (created because of 30x code)
rm -rf

# create archive from all folders in the current directory
zip -r */
# Creates mirror of

wget --mirror --execute robots=off --page-requisites \
	--reject bz2,gz,pdf,ps,pdb,rpm,tar,zip \
	--exclude-directories=/LDP/LG/,/LDP/LGNET/,/pub/Linux/docs/HOWTO/translations/,/pub/Linux/docs/ldp-archived/ \
	--limit-rate=500k \

zip -r tldp/

In the navigation drawer (left side menu), Offliner lists all folders/sites with an index.html file.