Android Offline Documentation Download
作者:互联网
Android SDK Offline Documentation
https://androidsdkoffline.blogspot.com/p/android-offline-documentation-download.html
Updated on:
2021-6-01 | 11:49:13 AM
Documentation provides you official information, guides,training as well as API reference for developing Android Apps.Previously, offline documenation was provided officially by the Android Dev team, but now it has been handled by the community.
Offline Documentation is not needed for developing Android Apps but it helps you alot when you need access on official guides,reference and most importantly the API reference, all available for offline browsing.
NOTICE:
- The archive file is very big in-size when it gets extracted (in our case ~1.75Gbs)
- The offline docs version DOES NOT include the training videos, it is available on YouTube
- The offline docs version DOES NOT inlcude the code samples, it is available on Github
Required Tools
- Local server like
http-server
,browser-sync
and the like - Offline Documentation Browser, we use Zeal
Download the Offline Android Documentation
All the files will point to the latest version available. Choose the mirror close to your area for faster dl:
- Android Offline Docs | Sanfrancisco Mirror
- Android.tgz
- Android Offline Docs | London Mirror
- Android.tgz
- Android Offline Docs | Newyork Mirror
- Android.tgz
- Android Offline Docs | Tokyo Mirror
- Android.tgz
- Android Offline Docs | Frankfurt Mirror
- Android.tgz
- Android Offline Docs | Singapore Mirror
- Android.tgz
How to Offline Browsing directly
You can directly browser the Android Offline docs on the browser. In this case we gonna using http-server
to serve the content.
- Download the Offline docs
- Extract the .tgz archive. It has parent folder named Android.docset
- Now , cd to
Contents\Resources\Documents
- Open CMD, then type:
http-server
- Open your browser and type
localhost:8080
. Port number might be different on yours. - Congrats, now you can enjoy Android docs completely offline
How to Offline Browsing using Zeal
Unlike direct browsing, we need to do little hack when using Zeal.We have to extract the archive to Zeal's docset storage directory so the content would be recognized by Zeal.
This will be vary depending on your installation. If you don't know where is the default docset location,
- Open Zeal
- Hit Ctrl+, aka
Preferences
- There, you will see
Docset Storage
. On theDirectory
you'll see where's the default docsets reside.
You can change the docset location if you wish.
Now for lets "install" the Android offline docset to Zeal:
- Download the Offline docs
- Go to the docset storage directory location.
- Extract the
Androd_xxxx.tar
there, so that the parent folderAndroid.docset
is now in the docset dir - Now open Android.docset folder
- Create file named
meta.json
, then add the following:{ "name":"Android", "title":"Android", "version":"__VERSION__", "revision":"__REVISION__" }
- For
__VERSION__
and__REVISION__
, change them with what mentioned in the downloaded file name.
For instance:Android_9.0.003.tar
will give you version 9 and revision 3 - For the Android docset icons, we need to icons. First named icon.png and then icon@2x.png
- Using online tools, copy paste this base64 image code, convert to .png then save as icon.png
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC2UlEQVQ4T5WSS09TURSFcUDiX+AHOIGRcWaitkBBoeXRUhKNgkAESVOLNIVCUQwvy1N5aglwSx9AoVgKfUCgLSkQBYpEMFRRiyIFQyJC4gQmy3NuTWMkDjzJl3Pu3mute7PvORNBVg1z6TrZNIT6ipy5Wlr71yJaFemVEgqIdpDVkWIMYZawVcNcPlfLcKIJPAL/N/QcTXshDauNCb+EPEQSpIQDInK3GHlzBnt6wDQlCg46hUHGKgg0GeLmaC+kYbWR4QCSHkkoqmWuHFpcYvg/SLG3p8DurgKfvxTBv1mIBV8WDHYBqCak5YQCyOFsHcORtQzEHzq8WVh6U47NT4/w4/sDHB2UY/+bAoFAEeZXZLB7JRiazECTIfaQeqiXBlwkBf/oTBqajWVoN3vQMWqBb702HOBZrMBTkxltZjeq++QwOK6hUc/1U29EnZbT8Ww0ATMvxZA012Fn/wgTCxuweRvDASPTNWyN9vLrq2Hx8NExHAfqjVDruEGtLRHuRTGYcTmkT4ag1vdjzV8dDpj3KVHF9ELSMoh2kwTWWQF6rDyo+7nBiHodFwbnVdg8Iiyv5mA3WEyMKvw8rAgHbG/L8G6zACtr2Zj0ZsDkTIbWxgP1hgMaupJQqc6Aa1aCr9vKUwG+1XwMj9+CoioFVa0J6HckoEH/R4DOIkRqXi5uyO6hrLEEmgEV9C9UYEaUaGUUuF9ThEyJBILc29AM8aFz/hXgeiXGsEMCUWknBPLnECk1yFSFECqfs7X0kk70jOZgzCM4HUCHuLaRh+W3D9FqNaKYcaKwexp3NdOQ9drxeLgPzgUZO2w6xPAXkL9wop1IxOS8iFyibHwMSLGzU4L3W5Vwv27C1JIaS2tyrKzfwcLKTVZndiWjd5wd4gm9B+ZmY+xx10gCesaSoLOlwuhIx4BTyO56exr6J1LQZ+Wj25IEqmszxdPbeEy99CZGEc4TLvwn1BP1C/4kWpNhsC6/AAAAAElFTkSuQmCC"
Save icon.png inside Android.docset , the same location as meta.json - Using online tools, copy paste this base64 image code, convert to .png then save as icon@2x.png
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGBElEQVR42sSXSW8cxxXHf1Vd3T09C4ebhiKtzaJEOJBj2IguARIkRm7xNd8ggHKJT/4IufmqU4ycfTEQBAGMHOIckoMvQYIk0GbJpmRuEiUuM8OZru7qqq4cmqQ43EwBTvxujXr16t//twvvPXty6/bCyw/go/cfCr4FOc2ufJWL38bjh0XyHYs46IKTEIdSYL3EeweAkgG2dCcaPe38sFvVWVAWpQccY0mlntTEUfKKAO0sxnky487MwHEABHCs35q1mFYimZscI1YSbfKR82ddTVdnWMuxDBwX1KcyEErBxek6060aV2cm6Iwn1KNRbKkRCG8onOfKuTqZKdnYydkcpGz0DOs9s8vg2RnwSgYV1bFgulWjM9HgSqdGu1FDqYp6a8tKJ3K4MsBYSxgIqFdGbOnRBpLMQe7wSG7dXvCHWRCH64AQAYGA+fN1rs8lzJ+bIIlD2o0EGUjk7vU9AKZwuLLEWIvOCwC6aY51Dl041vt9+jue+2sZghLrJb/99X1xBMCt2ws+lAKP5NJ0jWZtnCScoDt4rXJHGPO9i5qpMcvl6cE+6IMAnjwXbO7U+GKlhTYVwPHWGo6UYb5Ob1jux8ceE+pw6tVjweyUoD9osfhsmn8/uYzOY6SU9PQzrnQGIwAOypP1cZZeNPj8wWVcGSHJWbhkaTe3uTDZQ2caZ93+D3/0/kOhDgbcTDuiXodmnHDncZv/LF7kg1+8R6fdJqlF3P7DX3i4vMzP3uoSK3MEwD++usSL/hwf/vI9ZCDpDoZ8+AlEW4tcn13i/GRALxVs9ex+YKpbtxe8kgEeUJGnHs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awFlsTf9arJd68Mio7CezAiMy7BWkJcFmQFjPf0hGOOPMtBLS4wV+MIz1BlRUJLEAUrmhCpCqdHws7Yy4smwVmJ3W2+aZ9Wq4KrB1IscYz3WCAo8OLk/Gam9xaPQljTf22jM/2wVC6UYGdOPrGb/b/nOl9P/DgDxFwTsyAL2aAAAAABJRU5ErkJggg==
Save icon@2x.png inside Android.docset , the same location as meta.json - Open/Restart Zeal
- Congrats! Now you have Android offline docs and you can browse em all using Zeal
标签:__,offline,Zeal,Documentation,docset,Download,Android,Offline 来源: https://www.cnblogs.com/bluestorm/p/15047275.html