Android Question FileProviderUri removes CRLF in attached text file

rbtcotton

Member
Licensed User
Longtime User
I create a text file which is attached to a email.

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("xxxx@xxxx.com"))
            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.
 
Top