Scaricare ed installare una app.

17 views
Skip to first unread message

Carlo Mengarelli

unread,
Nov 7, 2018, 9:20:21 PM11/7/18
to DroidScript
Ho creato una app ed ho scaricato il file .apk sul mio sito.
Ora vorrei che l'utente possa scaricare questo file dal mio sito, scaricarlo sul tablet, ad esempio nella cartella download (e fino qui ci sono riuscito) e subito dopo installare l'app in modo automatico.
Quale comando devo aggiungere quindi nella mia app per fare in modo che questo accada?

Carlo Mengarelli

unread,
Nov 8, 2018, 8:39:47 AM11/8/18
to DroidScript
I created an app and downloaded the .apk file on my site.
Now I would like the user to download this file from my site, download it on the tablet, for example in the download folder (and up to here I did) and immediately install the app automatically.
Which command should I add in my app to make this happen?

Dave

unread,
Nov 9, 2018, 2:31:11 PM11/9/18
to DroidScript
You can't install an APK automatically on a user's phone from a URL.  This would be a security risk.

They will have to manually choose the 'Package Installer' to install the app after downloading it. 
Reply all
Reply to author
Forward
0 new messages