3 unstable releases

0.2.1 Feb 17, 2023
0.2.0 Feb 9, 2023
0.1.0 Feb 8, 2023

#8 in #intent

MIT license

9KB
162 lines

android-intent

crate documentation

use android_activity::AndroidApp;
use android_intent::{with_current_env, Action, Extra, Intent};

#[no_mangle]
fn android_main(_android_app: AndroidApp) {
    with_current_env(|env| {
        Intent::new(env, Action::Send)
            .with_type("text/plain")
            .with_extra(Extra::Text, "Hello World!")
            .into_chooser()
            .start_activity()
            .unwrap()
    });
}

Dependencies

~1.4–2MB
~42K SLoC