wood burning stoves 2.0*
The moose likes Android and the fly likes Android - center justified email body from Intent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android - center justified email body from Intent" Watch "Android - center justified email body from Intent" New topic
Author

Android - center justified email body from Intent

Steve Myers
Ranch Hand

Joined: Dec 08, 2012
Posts: 47
crosspost @ stackoverflow


I am attempting to email the results of the app with an intent. I am using a StringBuffer and appending a few lines of text with "\n" within each line and then invoking toString() on it and storing it in the 'result' variable.

The problem I am having is the text is automatically center justified in the email message body. What can I do to change this and make it left justified?

Here is the code for passing the intent:


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Android - center justified email body from Intent
 
Similar Threads
Set MIME type text/html
Sending an Email with JavaMail
Cannot find the problem in the code
sending Email with attachment using Android emulator
How to start new activity when click on a listview and pause the process that is being in background