what im trying to do is have an app download an update and call an activity to install the apk. the app itself cannot open the file. api 25 this method works but i dont want to request another permission to make my app compatible with newer permissions. the view action cannot be used. i need to refer to the installer directly when calling the activity starter. i am wondering how to call it for different api versions since andriod documentations are confusing and tldr. the documentation has so many calls that i got lost in the paper. my dad wants to see this soon and i am really eager to get the app working. i want to impress him so can anyone clarify on what calles are in different api's
example: i got the installer activity on os6 working with:
Action = android.intent.action.MAIN
package = com.google.android.packageinstaller
class = com.android.packageinstaller.PackageInstallerActivity
datauri = file:///path/to/application.apk
i dont know of what parameters would work on other versions and its hard to find that info.
some old support post that asked this same question and it is out of date on what the calls are
the app dose not work on os9 because the activity as a whole dose not exist.
the idea to come up with a list came from that issue.
the code blocks are not going to be shown because the app is intended to be closed source and distributed privetly.