shareIt method for Android

//shareIt method for Android

public void shareIt(){
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "Jom install al-Mathurat mobile, boleh download PERCUMA di sini http://bit.ly/m-mathurat ...\n";
shareBody=shareBody+" @almathurat #almathurat @mmathurat";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "al-Ma\'thurat mobile");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "Kongsikan melalui:"));
}//end shareIt


Popular Posts

WorldConferences.net