public static Intent newShareTextIntent ( String subject , String message , String chooserDialogTitle ) { Intent shareIntent = new Intent ( Intent . ACTION_SEND ) ; shareIntent . putExtra ( Intent . EXTRA_TEXT , message ) ; shareIntent . putExtra ( Intent . EXTRA_SUBJECT , subject ) ; shareIntent . setType ( MIME_TYPE_TEXT ) ; return Intent . createChooser ( shareIntent , chooserDialogTitle ) ; }
Creates a chooser to share some data .