Joke Collection Website - Joke collection - How to view Android SDK API documentation

How to view Android SDK API documentation

There are two ways to view android api: online viewing and offline viewing.

1.? Online inspection

Online viewing generally refers to watching directly on Android developer official website, but this requires that your network environment can access Google.

The official address is as follows:

/reference/packages.html

At present, the latest API is android 24, as shown below, the version of API can be switched on the left, and the package index or class index can be switched on the right.

2.? Offline viewing

Offline viewing generally refers to downloading developer help documents in SDK Manager as shown below (the latest is Android 7, namely API 24):

After the download is completed, the installation status will be displayed. Then, enter the SDK installation directory, open the folder named docs, and then open the index.html file in the browser. At this point, you can see the following index on the left side of the page:

Open development-> references, and then you can see the API documentation. This docs contains almost all the contents of the developer official website, so besides viewing the API, you can also view the official tutorials and other resources.

In addition, although this is an offline document, it contains Google font service and several scripts to connect with Google, so it may be slow to open. The solution is to use an editor, such as Notepad++, to search the URL string of accessing Google services contained in each file and replace it with an empty string.