create InstallerService to run installs in the background
I've been thinking: I think we also need an InstallerService
that is an IntentService
for sending the downloaded APKs to in order to install. In order to have a full background installation process, both the downloading and the installation need to be happening in a Service
. Right now, the installation procedure is tied to the Activity
that started the process. That will not work with fully background updates, or the ability to click Install, then browse for another app, then click install again.
An InstallerService
would also be an IntentService
so that the installation runs in a thread and has a built-in queue. The open question for me is whether installation needs to be cancelable, once started. My guess is no, since users can uninstall. Google Play does not let the user cancel even the download portion once they've clicked install.
@pserwylo @dschuermann what do you think?
this is related to #601 (closed)