this post was submitted on 14 May 2024
64 points (91.0% liked)
Rust
5974 readers
98 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is a thing I look for now and then, but it always seems to fall back to "install android studio" and I nope at that point. Maybe one of these days. Having the ability to make some simple app would be interesting.
@[email protected] @[email protected] Alright, I'm back. Survey says: we are, indeed, Android yet!
I found this example repo in my travels: https://github.com/inferrna/hello_world_android_egui
It shows the same demo setup that can be experienced through a Web browser at http://egui.rs, only now as a native-code Android application. To compile it I had to:
rustup target add aarch64-linux-android
cargo apk
) has been deprecated and no longer works (either that or i couldn't get it working -- xbuild is easier anyway)cargo install xbuild
cargo update
the repo since the version of android-activity it ships with is out of date and will crash since my version of Android passed it a null pointer it wasn't expectingx run --device adb:ADB_ID_GOES_HERE
I did NOT have to:
(I did download them separately as part of a different troubleshooting step, but I deleted them and it continued working. Not sure what to make of this. Not about to reinstall my OS to make sure these steps are reproducible. Please let me know if they are or not!)
UPDATE: It seems egui is not able to accept text input at all -- it does not know how to bring up the virtual keyboard when you click a textbox, nor does it accept keyboard input when the virtual keyboard is forced open through third party app nor through a physical USB keyboard. Still more work to be done, but I'm shocked at how much is already possible!
Very interesting, thank you. I should give this a try when I get back to a dev machine. Sounds like it still downloads and uses the SDK which might be significant for licensing or other reasons, but I'm probably fine with that for personal use.