文件下载
/**
* 下载服务 IntentService
* 生命周期:
* 1>当第一次启动IntentService时,Android容器
* 将会创建IntentService对象。
* 2>IntentService将会在工作线程中轮循消息队列,
* 执行每个消息对象中的业务逻辑。
* 3>如果消息队列中依然有消息,则继续执行,
* 如果消息队列中的消息已经执行完毕,
* IntentService将会自动销毁,执行onDestroy方法。
*/
public class DownloadService extends IntentService{