I have the following code that works excellent:
It runs installation, i press Install Button, all install fine...but i need to manually click on MyAPK.apk to start apk again after update.
So my question is:
How can i run automatically MyAPK.apk after installing update?
B4X:
'DEFINE - Intent
Dim iIntent As Intent
'INITIALIZE - Intent
iIntent.Initialize(iIntent.ACTION_VIEW, "file://" &File.DirRootExternal&"/Download/MyAPK.apk")
'SET - Type
iIntent.SetType("application/vnd.android.package-archive")
'START - iIntent
StartActivity(iIntent)
It runs installation, i press Install Button, all install fine...but i need to manually click on MyAPK.apk to start apk again after update.
So my question is:
How can i run automatically MyAPK.apk after installing update?