Sample Code

After downloading the sample code package, you can use the provided demo project to call open APIs of HUAWEI Wireless Kit and learn how to:

  • Obtain network QoE information.
  • Report the app transmission quality to WirelessKit.
  • Predicts weak signals in a network.
  • Set the Wi-Fi high-priority package transmission.
  • Use dual Wi-Fi capabilities.
Expand

Sample Code

Find It on Gitee

Find It on GitHub

Java sample code

Click here

Click here

NOTE

Before using the sample code, read the README file in the sample project carefully. Run the sample code only after you complete the following operations:

  1. Sign in to AppGallery Connect, download the agconnect-services.json file of your app, and copy the file to the app directory of the sample project.

  2. Open the build.gradle file in the sample project, and change the value of applicationId to your app package name.

Search
Enter a keyword.