Commit fb350fa
docs: add Examples section with 12 spoiler examples + E2E tests
README.md gets a new Examples section with collapsible <details> blocks:
NDK-native (complete runnable programs):
- Record from microphone (AAudio)
- Take a picture from camera (Camera2 + ImageReader)
- List available sensors
- Check thermal status
- Query GPU capabilities (EGL + GLES2)
- Probe available media codecs
- Read device configuration
- Decode an image file
Cross-project sketches (noting which library to use):
- Get GPS coordinates (jni/location)
- Connect to WiFi AP (jni/net/wifi)
- Send a notification (jni/app/notification)
- Query battery status (aidl)
E2E tests (tests/e2e/examples_test.go) verify the NDK examples
compile and run correctly on an Android emulator. Run with:
make e2e-examples-test1 parent 3229e05 commit fb350fa
4 files changed
Lines changed: 1022 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
0 commit comments