# Android

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

使用下面这些指南来配置你的数据中心代理 用于 [**使用移动数据**](#using-mobile-data) 或 [**Wi-Fi 网络**](#setting-up-a-proxy-for-a-wi-fi-network).

{% hint style="warning" %}
**注意：** 本指南中的部分截图为便于说明，展示的是使用住宅代理的设置过程；请参考正文中提供的针对数据中心代理的具体指南。
{% endhint %}

### 使用移动数据

**第 1 步。** 导航到 **设置** > **网络和互联网** > **互联网**.

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FKx1I8WgMbDn7OuQEikM3%2Fimage.png?alt=media&#x26;token=a977257c-180a-48bf-9710-9058420f7db8" alt="Android network settings"><figcaption></figcaption></figure>

**第 2 步。** 点击你的移动网络运营商设置，滚动到底部，然后选择 **接入点名称（APN）**.

**第 3 步。** 选择一个 **APN** 你当前正在使用的，以配置 Android 代理设置。

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2Fs8sCRhPvnsrwQD7ZEThX%2Fimage.png?alt=media&#x26;token=b0ae3755-93f4-47be-83d0-9500a521cb62" alt="Configuring proxy"><figcaption></figcaption></figure>

**第 4 步。** 按照下面指定填写设置字段：

{% hint style="warning" %}
当为移动网络使用代理时，连接类型可以是 `HTTP` 仅此而已。
{% endhint %}

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

**端口：** `8000`

{% hint style="info" %}
端口 `8000` 将选择一个随机 IP 地址。有关其他设置，例如代理 IP 轮换，请访问 [此文档页面](https://developers.oxylabs.io/proxies/datacenter-proxies/ip-control).
{% endhint %}

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

**用户名：** `password`

{% hint style="warning" %}
别忘了添加 `user-` 部分。
{% endhint %}

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2F0milN3nIj7jz3otiBhHv%2Fandroid_integration_DC.png?alt=media&#x26;token=e1e2abc8-4e23-478b-825f-f0d39f70bf30" alt="Proxy details"><figcaption></figcaption></figure>

**第 5 步。** 点击右上角的三个竖点，然后选择 **保存**.

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FtS3m8Z5dII1blm1vhB8b%2Fimage.png?alt=media&#x26;token=3c27c28b-6049-49a4-9c60-acee6d55b321" alt="Save changes"><figcaption></figcaption></figure>

**第 6 步。** 通过关闭并重新打开连接来重启网络，以应用更改。

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FDQmdPVeb8ArNkeIyue69%2Fimage.png?alt=media&#x26;token=53fb3db6-6d10-45d4-b513-adb4ae165060" alt="Restart the network"><figcaption></figcaption></figure>

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

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FwoI5d2m76c8SyTv5JBve%2Fimage.png?alt=media&#x26;token=1600084b-3b02-4d0f-9cdf-b8fcb74a774e" alt="Sign in"><figcaption></figcaption></figure>

就是这样！你现在正在使用带有代理 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>

**第 1 步。** 导航到 **设置** > **网络和互联网** > **互联网**.

**第 2 步。** 选择你当前的 Wi-Fi 网络，并点击设置图标以访问 **网络详情**.

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2F3fZ1qn47IyiBukV8Qu4Y%2Fimage.png?alt=media&#x26;token=5fbff8cc-ced6-46d4-ac17-07958c061cd9" alt="Network details"><figcaption></figcaption></figure>

**第 3 步。** 点击右上角的编辑按钮并展开 **高级选项** 部分，以配置 Android 代理设置。

**第 4 步。** 在 **代理，** 选择 **手动** 并输入你的代理详情以及凭据：

{% hint style="warning" %}
当为 Wi-Fi 网络使用代理时，连接类型可以是 `HTTP` 仅此而已。
{% endhint %}

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

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

{% hint style="info" %}
端口 `8000` 将选择一个随机 IP 地址。有关其他设置，例如代理 IP 轮换，请访问 [此文档页面](https://developers.oxylabs.io/proxies/datacenter-proxies/ip-control).
{% endhint %}

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

**用户名：** `password`

{% hint style="warning" %}
别忘了添加 `user-` 部分。
{% endhint %}

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FX4njygAUAEoQvldFnnxa%2Fandroid-integration-dc2.jpg?alt=media&#x26;token=49ca53cc-3e5c-45d2-8d65-cff52dc6eaa3" alt="Configure proxy"><figcaption></figcaption></figure>

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

<figure><img src="https://2655358775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FJLuP2GxZ3KZGvO6SolvO%2Fimage.png?alt=media&#x26;token=15da95ba-81ad-43c0-9ae5-053ef8921d2f" alt="Sign in"><figcaption></figcaption></figure>

就是这样！你现在正在使用带有代理 IP 地址的 Wi-Fi 网络。

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


---

# Agent Instructions: 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:

```
GET https://developers.oxylabs.io/documentation/cn/dai-li/integration-guides/shared-datacenter-proxies-guides/android.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
