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()
});
}
-
Notifications
You must be signed in to change notification settings - Fork 5
rust-mobile/android-intent
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published