接続ガイド
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アプリは、Wi-Fi、Bluetooth、USB など、さまざまな通信技術を使用して外部と接続できます。以下のガイドでは、これらのテクノロジーのサポートを追加する方法と、接続用にアプリを最適化する方法について説明します。
サポートされているテクノロジー
Android は、デバイスを外部に接続するための次のプロトコルとフレームワークをサポートしています。
ガイド |
ネットワーク: 概要 |
接続、管理、XML の解析、モニタリングなど、さまざまなネットワーク オペレーションの実行に関するガイドの概要。 |
ネットワーク: 5G |
5G ネットワーキングを活用する。 |
ネットワーク: VPN |
Android デバイス向けの独自のバーチャル プライベート ネットワーク(VPN)クライアントを開発してテストします。 |
ネットワーク: [Wi-Fi スキャン] |
デバイスから検出可能な Wi-Fi アクセス ポイントのリストを取得します。 |
ネットワーク: Wi-Fi Direct(P2P) |
中間のアクセス ポイントを介さずに、対応デバイスを直接接続します。 |
ネットワーク: Wi-Fi Aware |
Android 8.0(API レベル 26)以降を搭載しているデバイス間で、他の種類の接続を使用せずにデバイスを検出でき、相互に直接接続できるようにします。近接認識ネットワーキング(NAN)とも呼ばれます。 |
ネットワーク: Wi-Fi ラウンドトリップ時間(RTT) |
付近にある RTT 対応の Wi-Fi アクセス ポイントやピア Wi-Fi Aware デバイスとの距離を測定します。 |
ネットワーク: Wi-Fi ローカル専用アクセス ポイント |
Wi-Fi アクセス ポイントに接続されたデバイス上のアプリが相互に通信できるようにします。 |
Bluetooth: 概要 |
Android の Bluetooth サポートの概要(基本、主要なクラスとインターフェースなど)。 |
Bluetooth: Bluetooth クラシック |
アプリでベースラインの Bluetooth 接続を設定します。 |
Bluetooth: Bluetooth Low Energy(BLE) |
近くにあるデバイス間で少量のデータを転送し、近接センサーを操作します。 |
Bluetooth: BLE オーディオ |
バッテリー寿命を損なうことなくハイファイ音声を受信し、ユーザーがさまざまなユースケースをシームレスに切り替えられるようにします。 |
近距離無線通信(NFC) |
NFC は一連の短距離無線技術です。通常、接続を開始するには距離を 4 cm 以下にする必要があります。 |
測距 |
複数のテクノロジーで測距セッションを処理する。 |
テレコム |
eSIM や SIM カードなど、音声通話とビデオ通話を管理する。 |
超広帯域無線(UWB)通信 |
デバイス間の正確な測距を測定します。 |
USB |
USB アクセサリ モードと USB ホストモードを使用して、さまざまな USB 周辺機器と Android USB アクセサリをサポートします。 |
最適化
接続を最適化するためのアプリのチューニングについては、以下のガイドをご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Connectivity guides\n\nYour app can connect with the outside world using a variety of different\ncommunication technologies, including Wi-Fi, Bluetooth, and USB. The guides\nlisted below cover adding support for these technologies and for optimizing\nyour app for connectivity.\n\nSupported technologies\n----------------------\n\nAndroid supports the following protocols and frameworks for connecting your\ndevice to the outside world.\n\n| Guides ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Networks: [**Overview**](/develop/connectivity/network-ops) | Overview of guides that cover performing various network operations, including connections, management, parsing XML, monitoring, and more. |\n| Networks: [**5G**](/develop/connectivity/5g/enhance-with-5g) | Take advantage of 5G networking. |\n| Networks: [**VPN**](/develop/connectivity/vpn) | Develop and test your own virtual private network (VPN) client for an Android-powered device. |\n| Networks: [**Wi-Fi scanning**](/develop/connectivity/wifi-scan) | Get a list of Wi-Fi access points visible from a device. |\n| Networks: [**Wi-Fi Direct (P2P)**](/develop/connectivity/wifip2p) | Connect supported devices directly to each other without an intermediate access point. |\n| Networks: [**Wi-Fi Aware**](/develop/connectivity/wifi-aware) | Enable devices running Android 8.0 (API level 26) and higher to discover and connect directly to each other without any other type of connectivity between them. Also known as Neighbor Awareness Networking (NAN). |\n| Networks: [**Wi-Fi Round-Trip Time (RTT)**](/develop/connectivity/wifi-rtt) | Measure the distance to nearby RTT-capable Wi-Fi access points and peer Wi-Fi Aware devices. |\n| Networks: [**Wi-Fi local-only hotspot**](/develop/connectivity/localonlyhotspot) | Enable apps on devices connected to a Wi-Fi hotspot to communicate with each other. |\n| Bluetooth: [**Overview**](/develop/connectivity/bluetooth) | Overview of Android Bluetooth support, including basics and key classes and interfaces. |\n| Bluetooth: [**Bluetooth Classic**](/develop/connectivity/bluetooth/setup) | Set up baseline Bluetooth connectivity on your app. |\n| Bluetooth: [**Bluetooth Low Energy (BLE)**](/develop/connectivity/bluetooth/ble/ble-overview) | Transfer small amounts of data between nearby devices and interacting with proximity sensors. |\n| Bluetooth: [**BLE Audio**](/develop/connectivity/bluetooth/ble-audio/overview) | Receive high fidelity audio without sacrificing battery life, and let users seamlessly switch between different use cases. |\n| [**Near Field Communication (NFC)**](/develop/connectivity/nfc) | NFC is a set of short-range wireless technologies, typically requiring a distance of 4 cm or less to initiate a connection. |\n| [**Ranging**](/develop/connectivity/ranging) | Handle ranging sessions across multiple technologies. |\n| [**Telecom**](/develop/connectivity/telecom) | Manage audio and video calls, including eSIMs and SIM cards. |\n| [**Ultra Wideband (UWB) communication**](/develop/connectivity/uwb) | Measure precise ranging between devices. |\n| [**USB**](/develop/connectivity/usb) | Use USB accessory and USB host modes to support a variety of USB peripherals and Android USB accessories. |\n\nOptimizations\n-------------\n\nThe following guides can help you optimize your app for connectivity.\n\n| Guides ||\n|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [Reduce network battery drainage](/develop/connectivity/preserving-battery) | Learn about strategies for preserving battery, user experience, and system health. |\n| [Reduce latency and increase network throughput](/develop/connectivity/cronet) | Learn how to use Cronet, a library derived from the Chromium network stack, to reduce latency and increase throughput of network requests. |"]]