84

I am not able to find the offline docs for android. Can someone provide a link?

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Nullpoet
  • 10,949
  • 20
  • 48
  • 65

6 Answers6

103

If you install the SDK, the offline documentation can be found in $ANDROID_SDK/docs/.

Dan Lew
  • 85,990
  • 32
  • 182
  • 176
  • 5
    Cheers, saves time even on a wide broadband. And finally I can browse it while on a train. Search in docs redirects online though :( – Ivan G. May 26 '11 at 20:15
  • 7
    It seems that in the recent versions of the Android SDK, documentation is not included in the download. It is not available in the version 17 (20130219). – Mohammad Dehghan Apr 18 '13 at 14:38
  • I can confirm it is not available in version 18 either. I am using Android Studio, not the eclipse ide android download. – NuclearPeon Nov 04 '13 at 23:35
  • 7
    For a searchable offline documentation for Android and 130+ APIs and languages, check: Zeal (zealdocs.org) for Linux and Windows or Dash (kapeli.com/dash) for Mac. – malhobayyeb May 06 '14 at 02:07
  • where do you install the sdk from? did a google search, nothing clear popped up – IsaacBok Dec 13 '17 at 17:41
  • Ensure to download documentation in Android Studio's SDK Manager. Because other than that you won't read from SDK/Docs – Juan Mendez Dec 31 '17 at 00:05
  • @malhobayyeb Now Zeal are supporting macOs – Andra Jan 06 '20 at 13:17
37

This thread is a little old, and I am brand new to this, but I think I found the preferred solution.

First, I assume that you are using Eclipse and the Android ADT plugin.

In Eclipse, choose Window/Android SDK Manager. In the display, expand the entry for the MOST RECENT PLATFORM, even if that is not the platform that your are developing for. As of Jan 2012, it is "Android 4.0.3 (API 15)". When expanded, the first entry is "Documentation for Android SDK" Click the checkbox next to it, and then click the "Install" button.

When done, you should have a new directory in your "android-sdks" called "doc". Look for "offline.html" in there. Since this is packaged with the most recent version, it will document the most recent platform, but it should also show the APIs for previous versions.

Omniary
  • 371
  • 3
  • 3
31

here is direct link for api 17 documentation. Just extract at under docs folder. Hope it helps.

https://dl-ssl.google.com/android/repository/docs-17_r02.zip   (129 MB)

Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
androidlah
  • 319
  • 3
  • 2
  • 1
    Here's the latest version (Sept 2013): [docs-18_r01.zip](https://dl-ssl.google.com/android/repository/docs-18_r01.zip) – jenzz Sep 23 '13 at 22:59
  • 1
    is there any newer version ? – Pejman Oct 20 '13 at 19:09
  • @Omid : https://dl-ssl.google.com/android/repository/docs-19_r02.zip – Piotr Jun 09 '14 at 23:23
  • 2
    great, this still works.. :) https://dl-ssl.google.com/android/repository/docs-22_r01.zip – vi.su. Jun 23 '15 at 15:55
  • 3
    New version for Android 6.0: https://dl-ssl.google.com/android/repository/docs-23_r01.zip – verybadalloc Dec 25 '15 at 18:01
  • Doesn't work any more for API 25. Can someone please provide an updated link? – user940016 May 28 '17 at 05:25
  • v24 is the latest I have seen. By the way, why are we using the comments section of this answer to update for each new version? It's funny how this has been going for 4 years now. This question should just be re-opened and updated instead of this flaky update via these comments. – warsong Jun 22 '17 at 07:21
  • 2
    http://dl-ssl.google.com/android/repository/repository-12.xml – warsong Jun 22 '17 at 07:25
22

At first choose your API level from the following links:

API Level 17: http://dl-ssl.google.com/android/repository/docs-17_r02.zip

API Level 18: http://dl-ssl.google.com/android/repository/docs-18_r02.zip

API Level 19: http://dl-ssl.google.com/android/repository/docs-19_r02.zip

Android-L API doc: http://dl-ssl.google.com/android/repository/docs-L_r01.zip

API Level 24 doc: https://dl-ssl.google.com/android/repository/docs-24_r01.zip

download and extract it in your sdk driectory.



In your eclipse IDE:

at project -> properties -> java build path -> Libraries -> Android x.x -> android.jar -> javadoc

press edit in right:

javadoc URL -> Browse

select "docs/reference/" in archive extracted directory

press validate... to validate this javadoc.



In your IntelliJ IDEA

at file -> Project Structure Select SDKs from left panel -> select your sdk from middle panel -> in right panel go to Documentation Paths tab so click plus icon and select docs/reference/ in archive extracted directory.


enjoy the offline javadoc...

Omid.N
  • 824
  • 9
  • 19
Mohammad Reza Norouzi
  • 5,899
  • 1
  • 16
  • 18
  • This doesn't seem to work for the latest version of Android Studio (2.3). Any idea how to find the setting to set the docs path there? – Arsalan Ahmad Sep 29 '16 at 11:35
  • You'r right, this answer well for older version of android studio. In newer versions you should just download documents according to your project `compileSdkVersion` by SDK Manager. – Mohammad Reza Norouzi Sep 29 '16 at 19:31
5

Write the following in linux terminal:

$ wget -r http://developer.android.com/reference/packages.html
Nikola K.
  • 7,093
  • 13
  • 31
  • 39
zeratool
  • 1,271
  • 2
  • 12
  • 17
4

First of All you should download the Android SDK. Download here:
http://developer.android.com/sdk/index.html

Then, as stated in the SDK README:

The Android SDK archive now only contains the tools. It no longer comes populated with a specific Android platform or Google add-on. Instead you use the SDK Manager to install or update SDK components such as platforms, tools, add-ons, and documentation.

systempuntoout
  • 71,966
  • 47
  • 171
  • 241
  • 1
    I have a small question. Do you know how i can transfer the docs folder into my ipad and read the docs offline? What app allows me to do so? – Jono May 01 '13 at 18:07
  • As of AS 4.0, I find no option to download the documentation in the SDK Manager. If it is thtere, where is it? – Steve White Jun 16 '20 at 23:02