├── .classpath ├── .gitattributes ├── .gitignore ├── .project ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── README.md ├── assets └── icudt46l.zip ├── ic_launcher-web.png ├── libs ├── armeabi-v7a │ ├── libdatabase_sqlcipher.so │ ├── libsqlcipher_android.so │ └── libstlport_shared.so ├── armeabi │ ├── libdatabase_sqlcipher.so │ ├── libsqlcipher_android.so │ └── libstlport_shared.so ├── commons-codec.jar ├── guava-r09.jar ├── sqlcipher.jar └── x86 │ ├── libdatabase_sqlcipher.so │ ├── libsqlcipher_android.so │ └── libstlport_shared.so ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ └── ic_launcher.png ├── layout │ ├── activity_download.xml │ └── activity_main.xml ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml └── values │ ├── strings.xml │ └── styles.xml └── src └── com └── kindy └── httpurlconnection ├── DownloadActivity.java ├── MainActivity.java ├── models ├── FileInfo.java └── ThreadInfo.java ├── services ├── DownloadService.java └── DownloadTask.java └── utils ├── DBBaseHelper.java ├── DBDownloadHelper.java ├── Debug.java ├── HttpUtils.java └── SQLiteUtils.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | bin 45 | gen 46 | 47 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | HttpURLConnection 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HttpURLConnection 2 | **主要功能:** 3 |
android HttpURLConnection 支持 http 和 https, 4 |
文件的断点继续下载功能。 5 |
数据库的加密 6 | -------------------------------------------------------------------------------- /assets/icudt46l.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/assets/icudt46l.zip -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/ic_launcher-web.png -------------------------------------------------------------------------------- /libs/armeabi-v7a/libdatabase_sqlcipher.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/armeabi-v7a/libdatabase_sqlcipher.so -------------------------------------------------------------------------------- /libs/armeabi-v7a/libsqlcipher_android.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/armeabi-v7a/libsqlcipher_android.so -------------------------------------------------------------------------------- /libs/armeabi-v7a/libstlport_shared.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/armeabi-v7a/libstlport_shared.so -------------------------------------------------------------------------------- /libs/armeabi/libdatabase_sqlcipher.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/armeabi/libdatabase_sqlcipher.so -------------------------------------------------------------------------------- /libs/armeabi/libsqlcipher_android.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/armeabi/libsqlcipher_android.so -------------------------------------------------------------------------------- /libs/armeabi/libstlport_shared.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/armeabi/libstlport_shared.so -------------------------------------------------------------------------------- /libs/commons-codec.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/commons-codec.jar -------------------------------------------------------------------------------- /libs/guava-r09.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/guava-r09.jar -------------------------------------------------------------------------------- /libs/sqlcipher.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/sqlcipher.jar -------------------------------------------------------------------------------- /libs/x86/libdatabase_sqlcipher.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/x86/libdatabase_sqlcipher.so -------------------------------------------------------------------------------- /libs/x86/libsqlcipher_android.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/x86/libsqlcipher_android.so -------------------------------------------------------------------------------- /libs/x86/libstlport_shared.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/libs/x86/libstlport_shared.so -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-23 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/enjoy008/HttpURLConnection/40906371bbefc21248d6185e50055735378c6b48/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/layout/activity_download.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | 18 | 19 | 25 | 26 |