Enrico Cicala
Member
Hi, I'm trying to send a .zip file with an intent, the intent opens and is able to attach the file to gmail but when I send the email it returns a gmail error and it is not sent.
intent send file .zip:
Public Sub SharedFile(FileToSend As String,SharedFolder1 As String)
Provider.Initialize
File.Copy(SharedFolder1, FileToSend, Provider.SharedFolder, FileToSend)
Dim in As Intent
in.Initialize(in.ACTION_SEND, "")
in.PutExtra("android.intent.extra.SUBJECT",FileToSend&".zip")
in.SetType("text/plain")
in.PutExtra("android.intent.extra.STREAM", Provider.GetFileUri(FileToSend))
in.Flags=1 'FLAG_GRANT_READ_URI_PERMISSION
StartActivity(in)
End Sub