I like to install a new version of my App:
SDK < 24 is ok
I have found this:
https://stackoverflow.com/questions/41474683/programmatically-install-an-apk-in-android-7-api24
but how to release this case in B4X?
Kind regards
Volker
SDK < 24 is ok
B4X:
Dim pho As Phone
Dim igis As Intent
If pho.SdkVersion < 24 Then
igis.Initialize(igis.ACTION_VIEW, "file://" & File.Combine(File.DirDefaultExternal, "temp.apk"))
Else
igis.Initialize(igis.ACTION_VIEW, "content:///" & File.Combine(File.DirDefaultExternal, "temp.apk"))
End If
igis.SetType("application/vnd.android.package-archive")
StartActivity(igis)
I have found this:
https://stackoverflow.com/questions/41474683/programmatically-install-an-apk-in-android-7-api24
but how to release this case in B4X?
Kind regards
Volker