Example #1
0
 public static void StartActivityWithChooser(AndroidJavaObject intent, string chooserTitle)
 {
     try
     {
         var jChooser = intent.CallStaticAJO("createChooser", intent, chooserTitle);
         Activity.Call("startActivity", jChooser);
     }
     catch (AndroidJavaException exception)
     {
         Debug.LogWarning("Could not start the activity with " + intent.JavaToString() + ": " + exception.Message);
     }
     finally
     {
         intent.Dispose();
     }
 }