Connect your app to the outside world, whether it's through Bluetooth, Wi‑Fi or cellular network, USB, or another standard protocol.

Common protocols

Android supports a variety of standard communication protocols.
Guide
Support USB accessory and host modes.
Guide
Add 5G capabilities to your app.
Guide
Enable devices to communicate within 4 cm or less.
Guide
Develop and test a VPN client.
Guide
Manage audio and video calls on Android.
Guide
Measure precise ranging between devices.

Bluetooth

Use the Bluetooth protocol that matches your app needs and use cases.
Exchange data with other devices.
Exchange smaller data chunks using less energy.
Receive high-fidelity audio using less energy.

Wi‑Fi

Use the Wi-Fi protocol that matches your app needs and use cases.
Scan for Wi-Fi access points.
Enable direct device connections between any devices.
Enable direct connections between Android 8.0+ devices.
Measure distances between nearby access points and devices.

Optimize your app for connectivity

Get the most out of using communications technology with your app.
Guide
Reduce latency and increase network request throughput.
Guide
Preserve battery usage.