install intent

Rusty

Well-Known Member
Licensed User
Longtime User
I am installing a new version of my app, and all goes well except when I touch OPEN after the new install is done, my application doesn't start.
I then have to navigate to the apps and start it from the shortcut that was installed and it works great.
Can you advise me on what I might be doing wrong?
B4X:
ToastMessageShow("Installing new version, please wait.", True)
      Dim Instl As Intent
      Instl.Initialize(Instl.ACTION_VIEW, "file://" & File.Combine(SDCard.Version, Version.NewPackage))
      Instl.SetType("application/vnd.android.package-archive")
      StartActivity(Instl)
Thanks,
 
Top