I create a stream write to the file:
PrintStream stream = new PrintStream(openFileOutput("textFile",MODE_WORLD_READABLE)); Then I write down some hyphenated lines in this stream.
Then I read:
FileInputStream stream = ctx.openFileInput("textFile"); InputStreamReader reader = new InputStreamReader(stream,"UTF-8"); while (reader.ready()){ int simb = reader.read(); outString = outString.concat(Character.toString((char)simb)); } Then I prepare the form for sending by mail:
Intent mail = new Intent(Intent.ACTION_SEND_MULTIPLE); mail.setType("plain/text"); mail.putExtra(Intent.EXTRA_EMAIL, new String[] {"23433423@rambler.ru"}); mail.putExtra(Intent.EXTRA_SUBJECT, "письмо"); mail.putExtra(Intent.EXTRA_TEXT, outString); The problem is that in the postal form all the text in one line. If you open the recorded file "textFile" in AkelPad transfers there. Tell me how to fix it?