pixels/examples/minimal-winit-android
2023-07-02 18:49:41 -07:00
..
src Added example for android (#368) 2023-07-02 18:49:41 -07:00
Cargo.toml Added example for android (#368) 2023-07-02 18:49:41 -07:00
README.md Added example for android (#368) 2023-07-02 18:49:41 -07:00

Hello Android

Hello Android

Minimal example to run on android using winit with android-native-activity feature

Running

export ANDROID_HOME="path/to/sdk"
export ANDROID_NDK_HOME="path/to/ndk"

rustup target add aarch64-linux-android
cargo install cargo-apk

Connect your Android device via USB cable to your computer in debug mode and run the following command

cargo apk run