Now that you have seen the pieces that make up services and their clients, let us examine a few scenarios that employ services and how those scenarios might be implemented.
If you elect to download something from the Android Market, you are welcome to back out of the Market application entirely. This does not cancel the download - the download and installation run to completion, despite no Market activity being on-screen.
You may have similar circumstances in your application, from downloading a purchased e-book to downloading a map for a game to downloading a file from some sort of "drop box" file-sharing service.
Android 2.3 introduced the
DownloadManager (covered in a previous chapter), which would ...