English | 中文
Several samples show how to use the APIs of the Nearby Service. The project directory is as follows:
- BeaconManager: The package contains an Android Studio project that provides a sample for Beacon Management.
- NearbyCanteens: The package contains an Android Studio project that provides a sample for Beacon-based Message Publishing and Subscription.
- NearbyCardExchange: The package contains an Android Studio project that demonstrates how to develop the business card exchange function using Message APIs.
- NearbyConnection: The package contains an Android Studio project that provides a sample for Connection.
- NearbyFriends: The package contains an Android Studio project that provides a sample for App-based Message Publishing and Subscription.
- NearbyGameSnake: The package contains an Android Studio project that demonstrates how to develop a simple online Snake game using Connection APIs.
The project contains multiple independent projects. After downloading code, you can open a project in Android Studio to build your app or add multiple apps to a project. You do not have to create a separate project for each app. You can open setting.gradle to select the project to build.