Skip to content

rust-mobile/android-intent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
    });
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages