Reputation: 41
I have set the default email as in code as,
email.putExtra(Intent.EXTRA_EMAIL,new String[] { "[email protected]" });
I have to set the subject too, when i tried to set Intent.EXTRA_SUBJECT but I didnt get this .
Could someone help me on this.
Upvotes: 3
Views: 1869
Reputation: 2370
This is my earlier post and it works fine, take a look on it.
Here's the code in your case:
email.putExtra(android.content.Intent.EXTRA_SUBJECT, "Your subject here");
Hope it helps!
Upvotes: 5
Reputation: 1893
Try this, Hope it will help
intent.putExtra(Intent.EXTRA_SUBJECT,subject);
Upvotes: 0
Reputation: 876
The acutal line that interest you is :
emailIntent .putExtra(android.content.Intent.EXTRA_SUBJECT, yourSubject);
Upvotes: 1