Thursday, 19 April 2012

Email, SMS and Facebook Integration in Android App

* If you want to send email, sms or post any comments on Facebook then below i show code which we can use for send email, sms and post any comments on facebook with image and text *

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse("android.resource://com.hanuma/" + R.drawable.front);
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
sharingIntent.putExtra(Intent.EXTRA_TITLE, "Your Title Text");
sharingIntent.putExtra(Intent.EXTRA_TEXT,"Other Text");
context.startActivity(Intent.createChooser(sharingIntent, "Send"));

No comments:

Post a Comment