Code Labs
Code Labs collect practical Oniro and OpenHarmony sample applications. Use these guides when you want to inspect a working app, review its repository, understand its software and hardware requirements, and compare screenshots before building or adapting it.
Mobile Applications
| Category | Code lab | What it covers |
|---|---|---|
| AI | OniroGPT | GPT client for interacting with large language models on Oniro. |
| Communication | Discord Gmail |
Messaging and email application examples. |
| Distributed ability | Super Device Demo | Distributed device interaction and collaboration features. |
| Education | Duolingo | Language learning application example. |
| Entertainment | Magic8Ball | Simple entertainment app with randomized answers. |
| Game | Guess Number Throw The Dice Pinwheel |
Interactive games and sensor-based examples. |
| Health | Workout Logbook Water Tracker |
Fitness logging and hydration tracking examples. |
| Information | PlayScout Pokemon List OniroNews |
Data browsing, listing, and news-style applications. |
| Utility | Time Around World Super Bright Flashlight BMI Calculator Quote Of The Day Unit Converter MyList |
Everyday utility applications. |
| Video | Youtube | Video-focused application example. |
| Weather | MyMeteo | Weather information application. |
Wearable Applications
| Category | Code lab | What it covers |
|---|---|---|
| AI | App-OniroGPT | Wearable voice interaction with speech capture, transcription, translation, and GPT responses. |
| Gesture | Smart Gesture | Touch gestures, crown interactions, button events, and long-press behavior on a watch. |
| Health | Heart Rate Monitor | Heart-rate monitoring example for wearable devices. |
Cross-platform Applications
| Framework | Code lab | What it covers |
|---|---|---|
| React Native | app-rnoh-example | React Native for OpenHarmony, including prerequisites, native container code, bundle loading, compilation, and troubleshooting. |
| Ionic and Capacitor | Building an Oniro App with Capacitor OpenHarmony | Creating an Ionic app, adding the OpenHarmony platform adapter, using native plugins, signing, building, running, and debugging. |
Troubleshooting
For common build and installation issues, see Common Problems. For React Native specific issues, see React Native troubleshooting.