Android no method with name=’startActivity’ "

I try to share an image calling external apps like fb,twitter,istagramm ecc ecc on Android.
With this code it should work but on logcat there is this error and I do not know how to fix it.

__________________________________________CODE

public void screenshot()

	{
         Application.CaptureScreenshot("expl.png");
		
		AndroidJavaClass intentClass = new AndroidJavaClass("android.content.Intent");
		
		AndroidJavaObject intentObject = new AndroidJavaObject("android.content.Intent");
		
		intentObject.Call<AndroidJavaObject>("setAction", intentClass.GetStatic<AndroidJavaObject>("ACTION_SEND"));
		
		AndroidJavaClass uriClass = new AndroidJavaClass("android.net.Uri");
		
		AndroidJavaObject uriObject = uriClass.CallStatic<AndroidJavaObject>("parse","file://"+Application.persistentDataPath+"/expl.png");
		                                                  
		intentObject.Call<AndroidJavaObject>("putExtra", intentClass.GetStatic<AndroidJavaObject>("EXTRA_STREAM"), uriObject);
		                                                  
		intentObject.Call<AndroidJavaObject>("setType", "image/png");
		                                                  
		 AndroidJavaClass unity = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
		                                                  
		AndroidJavaObject currentActivity = unity.GetStatic<AndroidJavaObject>("currentActivity");
		                                                  
		currentActivity.Call<AndroidJavaObject>("startActivity", intentObject);
       

  }

Plz help me :frowning:

___________________ERROR

AndroidJavaException: java.lang.NoSuchMethodError: no method with name=’startActivity’ signature=’(Landroid.content.Intent;)Ljava/lang/Object;’ in class Lcom/unity3d/player/UnityPlayerNativeActivity;

Check my blog:

:wink: