Intent intent = new Intent(this, typeof(SecondActivity)); intent.AddFlags(ActivityFlags.NewTask | ActivityFlags.ClearTask); StartActivity(intent);
Intent intent = new Intent(Intent.ActionView); intent.AddFlags(ActivityFlags.NewTask); intent.SetData(uri); StartActivity(intent);This example creates an Intent to view a URI. The flag set here indicates that a new task should be created for the activity. The package library for the Android.Content.Intent class is typically included in the Android Package (APK) file for an Android application.