Skip to content

Commit 0bf187c

Browse files
committed
fix
1 parent 7cd2e4b commit 0bf187c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
api-level: 34
7272
arch: x86_64
7373
profile: Nexus 6
74-
script: adb install ./zig-out/bin/minimal.apk && adb shell am start -n com.zig.minimal/android.app.NativeActivity
74+
script: adb install ./zig-out/bin/minimal.apk && adb shell am start -S -W -n com.zig.minimal/android.app.NativeActivity
7575
working-directory: examples/minimal
7676

7777
- name: Run SDL2 Example (Android Emulator)
@@ -81,7 +81,7 @@ jobs:
8181
api-level: 34
8282
arch: x86_64
8383
profile: Nexus 6
84-
script: adb install ./zig-out/bin/sdl-zig-demo.apk && adb shell am start -n com.zig.sdl2/ZigSDLActivity
84+
script: adb install ./zig-out/bin/sdl-zig-demo.apk && adb shell am start -S -W -n com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
8585
working-directory: examples/sdl2
8686

8787
#

examples/minimal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ As of 2024-09-19, this is a thrown together, very quick copy-paste of the minima
77
```sh
88
zig build -Dtarget=x86_64-linux-android
99
adb install ./zig-out/bin/minimal.apk
10-
adb shell am start -S -n com.zig.minimal/android.app.NativeActivity
10+
adb shell am start -S -W -n com.zig.minimal/android.app.NativeActivity
1111
```
1212

1313
### Build and install for all supported Android targets

examples/sdl2/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
This is a copy-paste of [Andrew Kelly's SDL Zig Demo](https://github.com/andrewrk/sdl-zig-demo) but running on Android. The build is setup so you can also target your native operating system as well.
44

5-
### Build and install to test one target against a local emulator
5+
### Build, install to test one target against a local emulator and run
66

77
```sh
88
zig build -Dtarget=x86_64-linux-android
99
adb install ./zig-out/bin/sdl-zig-demo.apk
10+
adb shell am start -S -W -n com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
1011
```
1112

1213
### Build and install for all supported Android targets

0 commit comments

Comments
 (0)