Hello,
I wish to share a video file with dropbox, whatsapp or whatever app the user may choose. It is easy when sharing a text, but not a file. I am trying the following codr:
Dim i As Intent
i.Initialize(i.ACTION_SEND, "")
i.SetType("video/mp4")
i.PutExtra("android.intent.extra.STREAM", Url)
i.PutExtra("android.intent.extra.SUBJECT", "Share video:")
i.WrapAsIntentChooser("Share video:")
StartActivity(i)
Where Url points to the video file, named 00001.mp4, and I have checked that the file exists and is in a folder in the external SD card (accesible by the other apps).
The menu with the installed apps is shown, but the apps fail to receive the file. Help, please!
I wish to share a video file with dropbox, whatsapp or whatever app the user may choose. It is easy when sharing a text, but not a file. I am trying the following codr:
Dim i As Intent
i.Initialize(i.ACTION_SEND, "")
i.SetType("video/mp4")
i.PutExtra("android.intent.extra.STREAM", Url)
i.PutExtra("android.intent.extra.SUBJECT", "Share video:")
i.WrapAsIntentChooser("Share video:")
StartActivity(i)
Where Url points to the video file, named 00001.mp4, and I have checked that the file exists and is in a folder in the external SD card (accesible by the other apps).
The menu with the installed apps is shown, but the apps fail to receive the file. Help, please!