<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
This is the error that I get.
android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/fichasmmpp5.softbomberos/files/116.pdf exposed beyond app through Intent.getData()
This is the error that I get.
android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/fichasmmpp5.softbomberos/files/116.pdf exposed beyond app through Intent.getData()
B4X:
Sub Label3_Click
Dim FileName As String
Dim j As Intent ' Libreria Phone
FileName = Ficha & ".pdf"
If File.Exists(File.DirRootExternal, FileName) = False Then
File.Copy(File.DirAssets, FileName, File.DirDefaultExternal, FileName)
End If
j.Initialize(j.ACTION_VIEW, "file://" & File.Combine(File.DirDefaultExternal, FileName))
j.SetType("application/pdf")
StartActivity(j)
End Sub