I create a text file which is attached to a email.
This all works well, however the CRLF are removed in text file. I can review the file on the tablet and the file is correct before emailing.
Any help is appreciated.
B4X:
File.Copy(File.DirInternal, "Text.txt", Starter.shared, "Text.txt")
Dim in As Intent
in.Initialize(in.ACTION_SEND, "")
in.SetType("text/plain") 'it is not related to the file itself.
in.PutExtra("android.intent.extra.EMAIL", Array As String("[email protected]"))
in.PutExtra("android.intent.extra.SUBJECT","Location Data")
in.Flags = 1
StartActivity(in)
This all works well, however the CRLF are removed in text file. I can review the file on the tablet and the file is correct before emailing.
Any help is appreciated.