Skip to content

stark26583/zig-sdl-android-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-sdl3-android-test

My Image

Build, install to test one target against a local emulator and run

zig build -Dtarget=x86_64-linux-android
adb install ./zig-out/bin/sdl-android-test.apk
adb shell am start -S -W -n com.zig.sdl3/com.zig.sdl3.ZigSDLActivity

Build and install for all supported Android targets

zig build -Dandroid=true
adb install ./zig-out/bin/sdl-zig-demo.apk

Uninstall your application

If installing your application fails with something like:

adb: failed to install ./zig-out/bin/sdl3.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Existing package com.zig.sdl3 signatures do not match newer version; ignoring!]
adb uninstall "com.zig.sdl3"

View logs of application

Powershell (app doesn't need to be running)

adb logcat | Select-String com.zig.sdl3:

Bash (app doesn't need running to be running)

adb logcat | grep com.zig.sdl3:

Bash (app must be running, logs everything by the process including modules)

adb logcat --pid=`adb shell pidof -s com.zig.sdl3`

Thanks to

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors