Complication Test Suite is a set of complication data sources that provide dummy data and it can be used to test how different types of complications render on a watch face.
Steps for trying out the sample:
-
Compile and install the wearable app onto your Wear device or emulator (for Wear scenario).
-
This sample does not have a main Activity (just Services that provide the complication data). Therefore, you may see an error next to the 'Run' button. To fix, click on the "Wearable" dropdown next to the 'Run' button and select 'Edit Configurations'. Under the 'Launch Options', change the 'Launch' field from 'Default APK' to 'Nothing' and save.
This sample provides dummy data for testing the complications UI in your watch face. After selecting a type from your watch face configuration Activity, you can tap on the complications to see more options.
The Wear app demonstrates the use of ComplicationData, ComplicationDataSourceService, and ComplicationText.
- Android SDK 30
This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.
- Stack Overflow: http://stackoverflow.com/questions/tagged/android
If you've found an error in this sample, please file an issue: https://github.com/android/wear-os-samples/issues
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.