Displaying an action to share text, image data or/and URL is simply a process of calling
share() with data you wish to share.
An action dialog will be displayed with a list of applications that will accept the content for sharing. This generally includes applications like: Messaging, Email, Twitter, Facebook.
To share a URL:
To share an image (