在我的应用程序中,单击按钮,从异步任务中的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
此致 SRINIVAS
答案 0 :(得分:1)
这是eclipse logcat屏幕的复制和粘贴吗?如果是这样,简单的解决方法是重启eclipse。然后,日志消息将自行正确显示。
您的流程只运行一次,这是实际日志记录的问题。当您多次重启应用程序时会发生这种情况。
答案 1 :(得分:0)
使用adb连接到手机/模拟器,然后运行“ps -A”以获取进程列表