现在我正在从 URL 下载图像并在列表视图中显示它们。为此,我在 github 上引用了 Lazy List 库。
我的应用程序运行良好。但一段时间后,我在 logcat 中收到以下错误:
03-05 12:18:42.955: A/NetworkStats(12320): problem reading network stats
03-05 12:18:42.955: A/NetworkStats(12320): java.lang.IllegalStateException: problem parsing idx 1
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:300)
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1282)
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:831)
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:799)
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128)
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:633)
03-05 12:18:42.955: A/NetworkStats(12320): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
03-05 12:18:42.955: A/NetworkStats(12320): at android.os.Handler.handleCallback(Handler.java:605)
03-05 12:18:42.955: A/NetworkStats(12320): at android.os.Handler.dispatchMessage(Handler.java:92)
03-05 12:18:42.955: A/NetworkStats(12320): at android.os.Looper.loop(Looper.java:137)
03-05 12:18:42.955: A/NetworkStats(12320): at android.os.HandlerThread.run(HandlerThread.java:60)
03-05 12:18:42.955: A/NetworkStats(12320): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)
03-05 12:18:42.955: A/NetworkStats(12320): at libcore.io.IoBridge.open(IoBridge.java:406)
03-05 12:18:42.955: A/NetworkStats(12320): at java.io.FileInputStream.<init>(FileInputStream.java:78)
03-05 12:18:42.955: A/NetworkStats(12320): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:269)
03-05 12:18:42.955: A/NetworkStats(12320): ... 10 more
03-05 12:18:42.955: A/NetworkStats(12320): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
03-05 12:18:42.955: A/NetworkStats(12320): at libcore.io.Posix.open(Native Method)
03-05 12:18:42.955: A/NetworkStats(12320): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
03-05 12:18:42.955: A/NetworkStats(12320): at libcore.io.IoBridge.open(IoBridge.java:390)
03-05 12:18:42.955: A/NetworkStats(12320): ... 12 more
此错误每 2-3 分钟出现一次。我的应用程序运行良好。