Changed share button to preview button in mainactivity. Added toast and button in preview activity.