Sub CreateFileProviderUri (Dir As String, FileName As String) As Object
Dim FileProvider As JavaObject
Dim context As JavaObject
context.InitializeContext
FileProvider.InitializeStatic("android.support.v4.content.FileProvider")
Dim f As JavaObject
f.InitializeNewInstance("java.io.File", Array(Dir, FileName))
Return FileProvider.RunMethod("getUriForFile", Array(context, Application.PackageName & ".provider",f))
End Sub
The error:
java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/sdcard0/Android/data/conkex.preventa/files/shared/20181125011604presales.ZIP