Tôi đang cố thay đổi màu của văn bản (một chuỗi) khi tôi xuất nó ra một email. Mã của tôi là:Thay đổi màu của văn bản (chuỗi) khi gửi email
String appdata = "%" + txtFromSpinner + location.getText() + "%" + date.getText()+ "%" + start.getText() + "%" + finish.getText() + "%" + lunch.getText() + "%" + details.getText();
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"[email protected]"});
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Timesheet/Parte de horas");
emailIntent.putExtra(Intent.EXTRA_TEXT, appdata +sep+ "Please send this email."+sep+ "Your timesheet details are included in it."+sep+ "Thank you."+sep+ "Regards,"+sep+ "Admin Department."+sep+ "Payroll Direct.");
emailIntent.setType("message/rfc822");
startActivity(emailIntent);
Tôi muốn chuỗi "appdata" xuất hiện màu đỏ khi trong hộp thư email.
Điều này có thể được thực hiện và cách thực hiện không?
Cảm ơn bạn trước.
Bạn có thể định dạng email nếu bạn gửi nó dưới dạng HTML. Xem http://stackoverflow.com/questions/2544141/send-html-mail-using-android-intent –