> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/integrations/cn/proxy-integrations/android.md). Agents can also search and read this documentation through its [MCP server](https://developers.oxylabs.io/~gitbook/mcp).

# 安卓

在 Android 上配置 Oxylabs 代理——通过 APN 设置或 Wi‑Fi 网络为移动数据设置代理。

Android 是一种基于 Linux 的开源移动设备操作系统，例如智能手机和平板电脑。

使用以下指南配置您的移动网络 [**使用移动数据**](#using-mobile-data) 或 [**Wi-Fi 网络**](#setting-up-a-proxy-for-a-wi-fi-network) 使用以下 Oxylabs 代理类型：

* **住宅与移动代理**
* **ISP代理**
* **独享ISP代理**
* **数据中心代理**
* **独享数据中心代理**

## 使用移动数据

{% stepper %}
{% step %}

### **前往设置**

前往 **设置** > **网络和互联网** > **互联网**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-3214133d85b5c57755929c4cf5255f87745bd7ca%2Fimage.png?alt=media" alt="Android network settings"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 查找 APN 设置

点按您的移动网络提供商的设置，滚动到底部，然后选择 **接入点名称 (APN)**.
{% endstep %}

{% step %}

### 编辑 Android 代理设置

选择一个 **APN** 您当前正在使用的 APN，用于配置 Android 代理设置。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-56539fa4a17ea6e84f5ae20daa4eb841c5bf574c%2Fimage.png?alt=media" alt="Configuring proxy"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 输入代理详细信息

{% hint style="info" %}
在移动网络中使用代理时，连接类型可以是 `HTTP` 仅限。
{% endhint %}

按照以下说明填写适用于您代理类型的设置字段：

* [住宅与移动代理](#residential-and-mobile-proxies)
* [ISP代理](#isp-proxies)
* [独享ISP代理](#dedicated-isp-proxies)
* [数据中心代理](#datacenter-proxies)
* [独享数据中心代理（自助服务）](#dedicated-datacenter-proxies-self-service)
* [独享数据中心代理（企业版）](#dedicated-datacenter-proxies-enterprise)

#### **住宅与移动代理**

**代理：** `pr.oxylabs.io`

**端口：** `7777`

**用户名**: `用户名`

**密码：** `密码`

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-0555830b5ab335b3776b66cd6f0e734173951232%2Fimage.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

{% hint style="info" %}
您也可以使用随机或固定的按国家/地区分类的入口。例如，如果您输入 `us-pr.oxylabs.io` 在 **代理** 和 `10000` 在 **端口**，您将获得一个美国出口节点。如果您输入 `10001` 在 **端口**，您将获得带有固定会话的美国出口节点。您可以在此处找到完整的按国家/地区分类的代理入口节点列表 [**这里**](https://developers.oxylabs.io/proxies/residential-proxies/country-specific-entry-nodes#random-proxy-entry-nodes).
{% endhint %}

#### ISP代理

**代理：** `isp.oxylabs.io`

**端口：** `8001`

**用户名**: `user-username`

**密码：** `密码`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-5782f17a83dafa26e62ae85ce2e8b3fa2c6e8fea%2Fandroid_integration_ISP.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

您需要选择分配给已购买的 IP 地址的端口 [**代理列表**](https://developers.oxylabs.io/products/cn/proxies/isp-proxies/proxy-list.md)**,** 您可以在 Oxylabs 控制面板上找到它。该 `8001` 端口将为所有请求从您的列表中选取第一个 IP 地址。

#### 独享ISP代理

**代理：** `disp.oxylabs.io`

**端口：** `8001`

**用户名**: `user-USERNAME`

**密码：** `PASSWORD`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-17137571009b7c893224982958ded6f857f618b0%2Fandroid-1.png?alt=media" alt="Proxy details" width="563"><figcaption></figcaption></figure>

端口号表示将使用您已获取的 IP 地址中的哪一个 [代理列表](https://developers.oxylabs.io/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md) 将被使用。使用端口 `8000` 以实现自动 [代理 IP 轮换](https://developers.oxylabs.io/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).

#### 数据中心代理

**代理：** `dc.oxylabs.io`

**端口：** `8000`

**用户名**: `user-username`

**密码：** `密码`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-b8f27ab4b481f8f068a46594a3d36616ab5ea10e%2Fandroid_integration_DC.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

端口 `8000` 将随机选取一个 IP 地址。对于其他设置，例如代理 IP 轮换，请访问 [此文档页面](https://developers.oxylabs.io/products/cn/proxies/datacenter-proxies/ip-control.md).

#### 独享数据中心代理（自助服务）

**代理：** `ddc.oxylabs.io`

**端口：** `8001`

**用户名**: `user-username`

**密码：** `密码`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-61d190765f2e554d407afb906f315399cf84751c%2Fandroid_integration_DDC.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

您需要选择分配给已购买的 IP 地址的端口 [**代理列表**](https://developers.oxylabs.io/products/cn/proxies/dedicated-datacenter-proxies/self-service/proxy-list.md)**,** 您可以在 Oxylabs 控制面板上找到它。该 `8001` 端口将为所有请求从您的列表中选取第一个 IP 地址。

#### 独享数据中心代理（企业版）

**代理：** `1.2.3.4` （特定 IP 地址）

**端口：** `60000`

**用户名**: `用户名`

**密码：** `密码`

对于企业版独享数据中心代理，您必须从已获取的 IP 地址中选择一个 [代理列表](https://developers.oxylabs.io/products/cn/proxies/dedicated-datacenter-proxies/enterprise/proxy-lists.md).
{% endstep %}

{% step %}

### 保存更改

点按右上角的三个竖点，然后选择 **保存**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-b8bf87cf7f580cb7bcf5fc500b37c001535981e4%2Fimage.png?alt=media" alt="Save changes"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 完成设置

通过先关闭再重新开启连接来重启网络，以应用您的更改。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-cb762ff3d20d0978098dab089fff7f89e887306d%2Fimage.png?alt=media" alt="Restart the network"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 使用代理访问

最后，打开您的网页浏览器，输入之前指定的凭据，然后按 **登录**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-dbd88d552de54f409f1ec39a9b8755c12021287f%2Fimage.png?alt=media" alt="Sign in"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

就是这样！您现在正在使用带有代理 IP 地址的移动网络。

## 使用 Wi-Fi 网络 <a href="#setting-up-a-proxy-for-a-wi-fi-network" id="setting-up-a-proxy-for-a-wi-fi-network"></a>

{% stepper %}
{% step %}

### **前往设置**

前往 **设置** > **网络和互联网** > **互联网**.
{% endstep %}

{% step %}

### 查找 APN 设置

选择您当前的 Wi-Fi 网络，并点按设置图标以访问 **网络详细信息**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-9635745dc718b557ae9ae42c91a3a50cef4b129f%2Fimage.png?alt=media" alt="Network details"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 编辑 Android 代理设置

点按右上角的编辑按钮，并展开 **高级选项** 部分以配置 Android 代理设置。
{% endstep %}

{% step %}

### 输入代理详细信息

{% hint style="info" %}
在 Wi-Fi 网络中使用代理时，连接类型可以是 `HTTP` 仅限。
{% endhint %}

按照以下说明填写适用于您代理类型的设置字段：

* [住宅与移动代理](#residential-and-mobile-proxies-1)
* [ISP代理](#isp-proxies-1)
* [独享ISP代理](#dedicated-isp-proxies-1)
* [数据中心代理](#datacenter-proxies-1)
* [独享数据中心代理（自助服务）](#dedicated-datacenter-proxies-self-service-1)
* [独享数据中心代理（企业版）](#dedicated-datacenter-proxies-enterprise)

#### **住宅与移动代理**

**代理主机名：** `pr.oxylabs.io`

**代理端口：** `7777`

**用户名**: `customer-username`

**密码：** `密码`

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-21bda03086acfefb502132e94266843549dc373b%2Fimage.png?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

{% hint style="info" %}
您也可以使用随机或固定的按国家/地区分类的入口。例如，如果您输入 `us-pr.oxylabs.io` 在 **代理** 和 `10000` 在 **端口**，您将获得一个美国出口节点。如果您输入 `10001` 在 **端口**，您将获得带有固定会话的美国出口节点。您可以在此处找到完整的按国家/地区分类的代理入口节点列表 [**这里**](broken://spaces/ZwEHB9k4MH4pDy80n9mF/pages/c292bcb65f6b550e76b7c2f49439d9af518f96fc#country-specific-entry-nodes).
{% endhint %}

#### ISP代理

**代理主机名：** `isp.oxylabs.io`

**代理端口：** `8001`

**用户名**: `user-username`

**密码：** `密码`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-4fcb16e5225c84c48ca44548bad7f3868f5ed5ea%2Fandroid-integration-isp2.jpg?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

您需要选择分配给已购买的 IP 地址的端口 [**代理列表**](https://developers.oxylabs.io/products/cn/proxies/isp-proxies/proxy-list.md)**,** 您可以在 Oxylabs 控制面板上找到它。该 `8001` 端口将为所有请求从您的列表中选取第一个 IP 地址。

#### 独享ISP代理

**代理主机名：** `disp.oxylabs.io`

**代理端口：** `8001`

**用户名**: `user-USERNAME`

**密码：** `PASSWORD`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-09aac4fe8bd0ba4abed4a10da0ef98cddfc31555%2Fandroid-3.png?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

端口号表示将使用您已获取的 IP 地址中的哪一个 [代理列表](https://developers.oxylabs.io/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md) 将被使用。使用端口 `8000` 以实现自动 [代理 IP 轮换](https://developers.oxylabs.io/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).

#### 数据中心代理

**代理主机名：** `dc.oxylabs.io`

**代理端口：** `8000`

**用户名**: `user-username`

**密码：** `密码`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-0416d17632e7e4500661ffc0f43576cde0274c4a%2Fandroid-integration-dc2.jpg?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

端口 `8000` 将随机选取一个 IP 地址。对于其他设置，例如代理 IP 轮换，请访问 [此文档页面](https://developers.oxylabs.io/products/cn/proxies/datacenter-proxies/ip-control.md).

#### 独享数据中心代理（自助服务）

**代理主机名：** `ddc.oxylabs.io`

**代理端口：** `8001`

**用户名**: `user-username`

**密码：** `密码`

{% hint style="warning" %}
别忘了添加 `user-` 前缀到您的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-81ee970796e88820c5935ddd71789f6d6bfb0fab%2Fandroid-integration-ddc2.jpg?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

您需要选择分配给已购买的 IP 地址的端口 [**代理列表**](https://developers.oxylabs.io/products/cn/proxies/dedicated-datacenter-proxies/self-service/proxy-list.md)**,** 您可以在 Oxylabs 控制面板上找到它。该 `8001` 端口将为所有请求从您的列表中选取第一个 IP 地址。

#### 独享数据中心代理（企业版）

**代理主机名：** `1.2.3.4` （特定 IP 地址）

**代理端口：** `60000`

**用户名**: `用户名`

**密码：** `密码`

对于企业版独享数据中心代理，您必须从已获取的 IP 地址中选择一个 [代理列表](https://developers.oxylabs.io/products/cn/proxies/dedicated-datacenter-proxies/enterprise/proxy-lists.md).
{% endstep %}

{% step %}

### 保存更改

点按 **保存** 屏幕底部的按钮。
{% endstep %}

{% step %}

### 使用代理访问

打开您的网页浏览器，输入之前指定的凭据，然后按 **登录**.

{% hint style="warning" %}
别忘了添加`customer-` 或 `user-` 如果您的代理类型需要，请在用户名中添加前缀。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-dbd88d552de54f409f1ec39a9b8755c12021287f%2Fimage.png?alt=media" alt="Sign in"><figcaption></figcaption></figure>

就是这样！您现在正在使用带有代理 IP 地址的 Wi-Fi 网络。
{% endstep %}
{% endstepper %}

查找原始 Android 集成博客文章 [这里](https://oxylabs.io/resources/integrations/android).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/integrations/cn/proxy-integrations/android.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
