1
이것에 이상한 비트; 내 응용 프로그램 StringBuilder를 사용하여 전자 메일을 만드는 문자열을 작성하고 있습니다.전자 메일을 보낼 때 StringBuilder의 탭이 작동하지 않습니다 (Android)!
이제 텍스트 부분에 텍스트가 포함 된 전자 메일을 보내면됩니다 (텍스트는 Word 문서로 전송되므로 많은 편집 작업을 줄일 수 있습니다).
그래서 내 코드에서 나는 예를 들어, 탭을 포함하는 코드를 작성 중 : 그래서private void sendEmail(String recipient, String subject, String message) {
try {
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/html");
emailIntent.setType("message/rfc822");
if (recipient != null) emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{recipient});
if (subject != null) emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
if (message != null) emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
} catch (ActivityNotFoundException e) {
// cannot send email for some reason
}
}
내가 볼 :
message.append(component).append("\t\t\t\t\t\t\t\t\t\t\t\t").append(risk).append("\r\n");
내가 전자 메일을 구성하는 코드를 다음을 사용 보내기 전에 전자 메일을 보내면 탭이 작동하는 것 같지만 전자 메일을 받으면 거기에 없습니다. 우우.
왜 이런 생각일까요?
잘 했어 주변에 있지만,이 문제를 해결할 수있는 방법이없는 수치이다. 누군가에게 다른 생각이 있는지보기 위해 약간의 시간을두고, 그렇지 않다면 나는 당신의 답을 틱 할 것입니다. 응답 해 주셔서 감사합니다. – Scamparelli