send an email and sms of application to another user
I want to share an app to another person through mail or sms. For exam开发者_运维知识库ple if I am downloading one app from android market and I want to send that app link to other person, how can i send the link to that person through mail or sms?
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{
"test@test.com"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Your mail Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Put ur Application URL here");
Email.this.startActivity(Intent.createChooser(emailIntent, "Send mail..."));
You can send the mail this way, u can include ur Apps Market link in the Body of the mail.
You can do Browser.SendString, It filter all the (Intent.ACTION_SEND) intent-including twitter/facebook if you installed- from your phone and share what you want.
精彩评论