OK, the app started, so hump #1 good.
Then when I tried to pass the file to the installer and it gave this error:
java.lang.ClassNotFoundException: android.support$v4$content$FileProvider
Which was the name of the original class, so I changed the name to your new class in the GetFileUri sub:
'Returns the file uri.
Public Sub GetFileUri (FileName As String) As Object
If UseFileProvider = False Then
Dim uri As JavaObject
Return uri.InitializeStatic("android.net.Uri").RunMethod("parse", Array("file://" & File.Combine(SharedFolder, FileName)))
Else
Dim f As JavaObject
f.InitializeNewInstance("java.io.File", Array(SharedFolder, FileName))
Dim fp As JavaObject
Dim context As JavaObject
context.InitializeContext
'fp.InitializeStatic("android.support.v4.content.FileProvider")
fp.InitializeStatic("b4a.tinyfileprovider.igolub.B4AFileProvider") '<-------- changed to new class name
Return fp.RunMethod("getUriForFile", Array(context, Application.PackageName & ".provider", f))
End If
End Sub
And now it works!
And now my APK is 500k smaller !!!
Thank you very much!