| Crates.io | android-intent |
| lib.rs | android-intent |
| version | 0.2.1 |
| created_at | 2023-02-08 17:49:57.712196+00 |
| updated_at | 2023-02-17 00:47:27.146534+00 |
| description | Android intent utilities |
| homepage | |
| repository | https://github.com/rust-mobile/android-intent |
| max_upload_size | |
| id | 780031 |
| size | 8,126 |
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()
});
}