HandlerThread handlerThread = new HandlerThread("xx");
handlerThread.start();
registerReceiver(mReceiver,
new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE),
null,
new Handler(handlerThread.getLooper()));
转载于:https://my.oschina.net/TedzycRs/blog/411497