Android Question Install APK not working

victormedranop

Well-Known Member
Licensed User
Longtime User
it's strange this case was workig but now its not.
its android 19, but compiler with andorid 28 in b4a 8+
my code

B4X:
        LogColor("UPDATE APK with activity start",Colors.Yellow)
        Dim iIntent As Intent
        iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, public_variables.DOWNLOAD_FILENAME))
        iIntent.SetType("application/vnd.android.package-archive")
        StartActivity(iIntent)

and this is the error
 

Attachments

  • error.png
    error.png
    19.6 KB · Views: 224
Top