First let me say that cargo apk
works surprisingly well. kudos!
Now to the point. I have a small web app in Rust that I would like to try in an android device. I have the following questions:
What would be the right way to start the webserver and open the browser?
How I use the assets? The example on https://github.com/tomaka/android-rs-glue/tree/master/examples/use_assets does not seem to work
That example is outdated. You need to add
[package.metadata.android]
assets = "<path-to-assets>"
to your Cargo.toml, like here: zoc/Cargo.toml at dbd4ea5ad6111c1e067c5e3a5e301fff75e66b53 · ozkriff/zoc · GitHub
hey @hgrecco - did @ozkriff solution worked for you?
tomaka
August 28, 2016, 9:10pm
4
I just realized that the version of cargo-apk and android_glue on crates.io were very old. I published new versions.
1 Like
@ozkriff and @tomaka . It works now. Thanks a lot. Any idea about the other question? My application starts a local web server and I want to open a browser pointing to it, and close the application when the browser is closed.