Skip to content

3. Native Share

Taras Leskiv edited this page Jul 8, 2016 · 16 revisions

Supported Share intents:

Native share

Share text using Android intent. Shows chooser by default.

Example usage:

AndroidShare.ShareText("My subject", "My text to share");

Sending Email

Send an email using Android intent. Shows chooser by default.

bool withChooser = true;
AndroidShare.SendEmail(new [] { "x@gmail.com", "hello@gmail.com" }, "subj", "body", withChooser);

Sending SMS

Send and SMS text message to specified phone number

Example usage:

bool withChooser = true;
AndroidShare.SendSms("123123123", "Hello", withChooser);

Tweeting

Android Goodies allows you to tweet directly through official Twitter app. If the app is not installed the call will fallback to the browser one.

Example code:

AndroidShare.Tweet("I am tweeting like a boss");
Clone this wiki locally