(Most of the time, we need to download files from remote servers on Android devices for installation. I saw a video two nights ago and wrote about it. Access the remote server directly through the Http class provided by Android. Here, Android HttpClient is a new method in SDK 2.2 to download breakpoint files. Let's take a look at the following figure first.
smart_ breakpointDownload\bin\com\smart\activoty\download\R$attr.class
smart_ breakpointDownload\bin\com\smart\activoty\download\R$drawable.class
smart_ breakpointDownload\bin\com\smart\activoty\download\R$id.class
smart_ breakpointDownload\bin\com\smart\activoty\download\R$layout.class
smart_ breakpointDownload\bin\com\smart\activoty\download\R$string.class
smart_ breakpointDownload\bin\com\smart\activoty\download\R.class
smart_ breakpointDownload\bin\com\smart\activoty\download\SmartDownloadActivity$1.class
smart_ breakpointDownload\bin\com\smart\activoty\download\SmartDownloadActivity$2.class
smart_ breakpointDownload\bin\com\smart\activoty\download\SmartDownloadActivity$3$1.class
smart_ breakpointDownload\bin\com\smart\activoty\download\SmartDownloadActivity$3.class
smart_ breakpointDownload\bin\com\smart\activoty\download\SmartDownloadActivity.class
smart_ breakpointDownload\bin\com\smart\db\DBOpenHelper.class
smart_ breakpointDownload\bin\com\smart\db\FileService.class
smart_ breakpointDownload\bin\com\smart\impl\SmartDownloadProgressListener.class
smart_ breakpointDownload\bin\com\smart\impl\SmartDownloadThread.class
smart_ breakpointDownload\bin\com\smart\impl\SmartFileDownloader.class
smart_ breakpointDownload\bin\classes.dex
smart_ breakpointDownload\bin\resources.ap_
smart_ breakpointDownload\bin\smart_ breakpointDownload.apk
smart_ breakpointDownload\gen\com\smart\activoty\download\R.java
smart_ breakpointDownload\res\drawable-hdpi\icon.png
smart_ breakpointDownload\res\drawable-ldpi\icon.png
smart_ breakpointDownload\res\drawable-mdpi\icon.png
smart_ breakpointDownload\res\layout\main.xml
smart_ breakpointDownload\res\values\strings.xml
smart_ breakpointDownload\src\com\smart\activoty\download\SmartDownloadActivity.java
smart_ breakpointDownload\src\com\smart\db\DBOpenHelper.java
smart_ breakpointDownload\src\com\smart\db\FileService.java
smart_ breakpointDownload\src\com\smart\impl\SmartDownloadProgressListener.java
smart_ breakpointDownload\src\com\smart\impl\SmartDownloadThread.java
..... Too many files omitted)