// Set the intent data and type Intent intent = new Intent(Intent.ActionSend); intent.SetDataAndType(data, "text/plain"); // Send the intent StartActivity(Intent.CreateChooser(intent, "Send text"));
// Set the intent data and type Intent intent = new Intent(Intent.ActionView); intent.SetDataAndType(Uri.Parse("http://example.com"), "text/html"); intent.AddFlags(ActivityFlags.NewTask); // Start the activity StartActivity(intent);This example creates an intent to view a webpage and sets the data and MIME type. It also sets the flag to create a new task for the activity. The package library for this example is the Android.Content.Intent library.