How to share an image using android share functionalities?

Hello,i would like to implement a “share functionality” in my android game like the one found in “hill climb racing”.

In this game, at the end of the race, the player can share an image with statistics of the race using android share functionalities.

Is is possible to implement such functionality with Unity? i was thinking about something like this:

if(Application.platform == RuntimePlatform.Android)
{
   AndroidJavaClass jc = new AndroidJavaClass("what should go here?");
   AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject>("currentActivity");
   jo.Call("function to be called?");
}

EDIT: it seems that i have to implement a ShareActionProvider (Adicionar barra de apps  |  Desenvolvedores Android  |  Android Developers)

Any help is appreciated.

Thanks.

I believe this can help you: