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.
If you have questions about how to use HMS samples, try the following options:
- Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
- Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.
If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.