android/connectivity-samples

Multiple samples showing the best practices in connectivity on Android.

Java

1,789

151 commits

updated Jul 10, 2025

See the code

README

Warning This sample has been deprecated and is no longer being maintained.

To find other samples that may be of interest, see https://developer.android.com/samples.

Connectivity Samples Repository

This repository contains a set of individual Android Studio projects to help you get started writing Connectivity apps in Android.

If you find an issue or bug in one of the projects, feel free to file an issue on this repository with the following information:

  • The specific project that pertains to the issue (for example: the 'BluetoothLeGatt' project)
  • Steps to repro the issue, including the API version and Android device model

Example of a good issue: In the BluetoothLeGatt sample, I am unable to see any BLE devices after the initial scan. I ran the sample on a Pixel 2 running API version 28.

Examples of bad issues:

  1. Bluetooth scanning doesn't work.
  2. My app is crashing when I try to send a large file.
  3. How can I support BLE in my app?

Requests for samples related to Android connectivity are also welcome.

android/connectivity-samples

Multiple samples showing the best practices in connectivity on Android.

Java

1,789

151 commits

updated Jul 10, 2025

See the code

README

Warning This sample has been deprecated and is no longer being maintained.

To find other samples that may be of interest, see https://developer.android.com/samples.

Connectivity Samples Repository

This repository contains a set of individual Android Studio projects to help you get started writing Connectivity apps in Android.

If you find an issue or bug in one of the projects, feel free to file an issue on this repository with the following information:

  • The specific project that pertains to the issue (for example: the 'BluetoothLeGatt' project)
  • Steps to repro the issue, including the API version and Android device model

Example of a good issue: In the BluetoothLeGatt sample, I am unable to see any BLE devices after the initial scan. I ran the sample on a Pixel 2 running API version 28.

Examples of bad issues:

  1. Bluetooth scanning doesn't work.
  2. My app is crashing when I try to send a large file.
  3. How can I support BLE in my app?

Requests for samples related to Android connectivity are also welcome.

Project health

Overall

1.8/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

Yuri Schimke

495 followers · starred Sep 2022

Fankes yooni

886 followers · starred Dec 2023

J4ck W4n9

284 followers · starred May 2024

Kaneki

23 followers · starred Jun 2024