Share via


Browser.SendString(Context, String) Method

Definition

Sends the given string using an Intent with Intent#ACTION_SEND and a mime type of text/plain.

[Android.Runtime.Register("sendString", "(Landroid/content/Context;Ljava/lang/String;)V", "")]
public static void SendString (Android.Content.Context? context, string? string);
[<Android.Runtime.Register("sendString", "(Landroid/content/Context;Ljava/lang/String;)V", "")>]
static member SendString : Android.Content.Context * string -> unit

Parameters

context
Context

the context used to start the activity

string
String

the string to send

Attributes

Remarks

Sends the given string using an Intent with Intent#ACTION_SEND and a mime type of text/plain. The string is put into Intent#EXTRA_TEXT.

Java documentation for android.provider.Browser.sendString(android.content.Context, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to