Dim FileName As String = "documento.pdf" 'change it
File.Copy(shared, FileName, Starter.Provider.SharedFolder, FileName)
'File.Copy(shared, "documento.pdf", Starter.Provider.SharedFolder, "documento.pdf")
' If Not (File.Exists(shared,"documento.pdf")) Then
' File.Copy(File.DirAssets,"documento.pdf",shared,"documento.pdf")
' End If
Dim sendIntent As Intent
sendIntent.Initialize(sendIntent.ACTION_MAIN,"")
'sendIntent.PutExtra("jid","+393291876000" & "@s.whatsapp.net")
sendIntent.Action=sendIntent.ACTION_SEND
sendIntent.SetPackage("com.whatsapp")
sendIntent.SetComponent("android/com.android.internal.app.ResolverActivity")
''sendIntent.SetComponent("com.whatsapp/.ContactPicker")
sendIntent.PutExtra("android.intent.extra.STREAM", Starter.Provider.GetFileUri("documento.pdf"))
sendIntent.PutExtra("android.intent.extra.TEXT","Si allega documento :")
sendIntent.SetType("application/pdf")
StartActivity(sendIntent)