plusminus wrote:Short snippet to start an Email-Activity with some preset data:Using java Syntax Highlighting
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent .setType("plain/text"); emailIntent .putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"webmaster@website.com"}); emailIntent .putExtra(android.content.Intent.EXTRA_SUBJECT, mySubject); emailIntent .putExtra(android.content.Intent.EXTRA_TEXT, myBodyText); context.startActivity(Intent.createChooser(intent, "Send mail...));Parsed in 0.032 seconds, using GeSHi 1.0.8.4
Wasted 30 minutes before I realised that type should be text/plain! Same for text/html. Please fix original message.





