private static Intent createShareIntent(Context context,final String shareText){
  final Intent shareIntent=new Intent(Intent.ACTION_SEND);
  shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,context.getString(R.string.share_subject));
  shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,shareText);
  shareIntent.setType("text/plain");
  return shareIntent;
}

private static Intent createShareIntent ( Context context , final String shareText ) { final Intent shareIntent = new Intent ( Intent . ACTION_SEND ) ; shareIntent . putExtra ( android . content . Intent . EXTRA_SUBJECT , context . getString ( R . string . share_subject ) ) ; shareIntent . putExtra ( android . content . Intent . EXTRA_TEXT , shareText ) ; shareIntent . setType ( "text/plain" ) ; return shareIntent ; }
creates a share intent
