手头有一个项目,类似应用商店,有一个下载管理模块,功能是下载、升级、卸载。
我能描述的基本信息如下:
诸位在安卓开发中有没有遇到过类似的问题?
迷茫2017-04-17 11:36:55
1. Log the time before and after connect to see how long the connection takes.
2. The download may be slightly slower at the beginning because it involves file creation (this time is very short).
3. Check the content-length returned by http and compare it with the length of your inputstream read to see if the reception is completed.
4. Check whether inputstream read has been packaged by itself and whether it affects efficiency.
5. Downloads are written directly to the memory card (built-in memory card, or SD card). If you write to the memory and then copy to the memory card, the memory will explode.