> 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).

# Android

在 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`

**用户名**: `username`

**密码：** `password`

<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`

**密码：** `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-5782f17a83dafa26e62ae85ce2e8b3fa2c6e8fea%2Fandroid_integration_ISP.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

您需要选择分配给所购买的 IP 地址的端口 [**代理列表**](/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>

端口号指示将使用您已获取的 [代理列表](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md) 中的哪个 IP 地址。使用端口 `8000` 可自动进行 [代理 IP 轮换](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).

#### 数据中心代理

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

**端口：** `8000`

**用户名**: `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-b8f27ab4b481f8f068a46594a3d36616ab5ea10e%2Fandroid_integration_DC.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

该端口 `8000` 将选择一个随机 IP 地址。有关代理 IP 轮换等其他设置，请访问 [此文档页面](/products/cn/proxies/datacenter-proxies/ip-control.md).

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

**代理：** `ddc.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-61d190765f2e554d407afb906f315399cf84751c%2Fandroid_integration_DDC.png?alt=media" alt="Proxy details"><figcaption></figcaption></figure>

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

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

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

**端口：** `60000`

**用户名**: `username`

**密码：** `password`

对于企业版独享数据中心代理，您必须从已获取的 [代理列表](/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`

**密码：** `password`

<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` 在 **端口**，您将获得带粘性会话的美国出口节点。您可以在此找到完整的按国家/地区划分的代理入口节点列表 [**此处**](/products/cn/proxies/residential-proxies/location-settings/select-country.md#country-specific-entry-nodes).
{% endhint %}

#### ISP代理

**代理主机名：** `isp.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-4fcb16e5225c84c48ca44548bad7f3868f5ed5ea%2Fandroid-integration-isp2.jpg?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

您需要选择分配给所购买的 IP 地址的端口 [**代理列表**](/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>

端口号指示将使用您已获取的 [代理列表](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md) 中的哪个 IP 地址。使用端口 `8000` 可自动进行 [代理 IP 轮换](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).

#### 数据中心代理

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

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

**用户名**: `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-0416d17632e7e4500661ffc0f43576cde0274c4a%2Fandroid-integration-dc2.jpg?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

该端口 `8000` 将选择一个随机 IP 地址。有关代理 IP 轮换等其他设置，请访问 [此文档页面](/products/cn/proxies/datacenter-proxies/ip-control.md).

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

**代理主机名：** `ddc.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-81ee970796e88820c5935ddd71789f6d6bfb0fab%2Fandroid-integration-ddc2.jpg?alt=media" alt="Configure proxy"><figcaption></figcaption></figure>

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

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

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

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

**用户名**: `username`

**密码：** `password`

对于企业版独享数据中心代理，您必须从已获取的 [代理列表](/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
