在我的应用程序中,单击按钮时,以异步任务从 Web 服务器下载一些内容。一切都很好,但是当我观察 DDMS 时,发现日志消息重复多次。是 DDMS 的问题还是多个进程在后台运行。
如果是我的问题,如何确定有多少进程在后台运行?
05-09 16:37:39.673: VERBOSE/DownloadManager(12184): DE: Size - 4
05-09 16:37:39.673: VERBOSE/DownloadManager(12184): DE: Size - 4
05-09 16:37:39.673: VERBOSE/DownloadManager(12184): DE: Size - 4
05-09 16:37:39.673: VERBOSE/DownloadManager(12184): DE: Size - 4
05-09 16:37:39.692: VERBOSE/DownloadManager(12184): DE.1.zip
05-09 16:37:39.692: VERBOSE/DownloadManager(12184): DE.1.zip
05-09 16:37:39.692: VERBOSE/DownloadManager(12184): DE.1.zip
05-09 16:37:39.692: VERBOSE/DownloadManager(12184): DE.1.zip
05-09 16:38:38.933: VERBOSE/DownloadManager(12184): DEAfter Compress
05-09 16:38:38.933: VERBOSE/DownloadManager(12184): DEAfter Compress
05-09 16:38:38.933: VERBOSE/DownloadManager(12184): DEAfter Compress
05-09 16:38:38.933: VERBOSE/DownloadManager(12184): DEAfter Compress
05-09 16:38:39.004: VERBOSE/DownloadManager(12184): DE.2.zip
05-09 16:38:39.004: VERBOSE/DownloadManager(12184): DE.2.zip
05-09 16:38:39.004: VERBOSE/DownloadManager(12184): DE.2.zip
05-09 16:38:39.004: VERBOSE/DownloadManager(12184): DE.2.zip
05-09 16:38:52.493: VERBOSE/DownloadManager(12184): XX: Size - 4
05-09 16:38:52.493: VERBOSE/DownloadManager(12184): XX: Size - 4
05-09 16:38:52.493: VERBOSE/DownloadManager(12184): XX: Size - 4
05-09 16:38:52.493: VERBOSE/DownloadManager(12184): XX: Size - 4
05-09 16:38:52.557: VERBOSE/DownloadManager(12184): XX.1.zip
05-09 16:38:52.557: VERBOSE/DownloadManager(12184): XX.1.zip
05-09 16:38:52.557: VERBOSE/DownloadManager(12184): XX.1.zip
05-09 16:38:52.557: VERBOSE/DownloadManager(12184): XX.1.zip
05-09 16:39:53.844: VERBOSE/DownloadManager(12184): DEAfter Compress
05-09 16:39:53.844: VERBOSE/DownloadManager(12184): DEAfter Compress
问候, 斯里尼瓦斯