Hello,
I am trying to implement to activate the option App Installation from Unknown Source.
I have uploaded my App in my website, from where users will download and install the app.
But I am not sure about how to implement the feature App Installation from Unknown Source during new App installation from my website.
You CAN NOT do it for the first installation. At least i think this is not possible without user interaction. Means; User need to download the apk and run the Packageinstaller with the apk to install it. Note if he (the user) download the app using an email app (reading a mail with a attachment) then the emailapp needs to have the rights to install 3rd party apps.
The Code from the tutorial above only applies to UPDATES which is done by the app itself.