├── .gitignore ├── .settings ├── com.google.appengine.eclipse.core.prefs ├── com.google.gdt.eclipse.core.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.jdt.ui.prefs ├── org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs ├── org.eclipse.ltk.core.refactoring.prefs └── org.eclipse.wst.common.project.facet.core.xml ├── AndroidManifest.xml ├── LICENSE ├── README.md ├── RepackHttpClient ├── clxyupload.jar ├── httpclient-4.2.5.jar ├── httpcore-4.2.4.jar ├── httpmime-4.2.5.jar ├── jarjar-1.4.jar ├── readme.txt ├── repack.bat ├── rules.txt └── rules_airpush.txt ├── libs ├── repack-clxyupload.jar ├── repack-httpclient-4.2.5.jar ├── repack-httpcore-4.2.4.jar └── repack-httpmime-4.2.5.jar ├── lint.xml ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── layout │ └── activity_upload.xml ├── menu │ └── upload.xml └── values │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml └── src └── cn └── clxy └── studio └── android └── bigfileupload └── UploadActivity.java /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | 18 | # Eclipse project files 19 | .classpath 20 | .project 21 | RepackHttpClient/repack*.jar 22 | /.README.md.html 23 | /assets 24 | -------------------------------------------------------------------------------- /.settings/com.google.appengine.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | filesCopiedToWebInfLib= 3 | googleCloudSqlEnabled=false 4 | localDevMySqlEnabled=true 5 | -------------------------------------------------------------------------------- /.settings/com.google.gdt.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | jarsExcludedFromWebInfLib= 3 | warSrcDir= 4 | warSrcDirIsOutput=true 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 3 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 4 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=16 5 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 6 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 7 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 8 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 9 | org.eclipse.jdt.core.formatter.alignment_for_assignment=0 10 | org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 11 | org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 12 | org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 13 | org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 14 | org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 15 | org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 16 | org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 17 | org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 18 | org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 19 | org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 20 | org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 21 | org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 22 | org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 23 | org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 24 | org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 25 | org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 26 | org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 27 | org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 28 | org.eclipse.jdt.core.formatter.blank_lines_after_package=1 29 | org.eclipse.jdt.core.formatter.blank_lines_before_field=0 30 | org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 31 | org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 32 | org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 33 | org.eclipse.jdt.core.formatter.blank_lines_before_method=1 34 | org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 35 | org.eclipse.jdt.core.formatter.blank_lines_before_package=0 36 | org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 37 | org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 38 | org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line 39 | org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line 40 | org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line 41 | org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line 42 | org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line 43 | org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line 44 | org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line 45 | org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line 46 | org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line 47 | org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line 48 | org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line 49 | org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true 50 | org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true 51 | org.eclipse.jdt.core.formatter.comment.format_block_comments=true 52 | org.eclipse.jdt.core.formatter.comment.format_header=false 53 | org.eclipse.jdt.core.formatter.comment.format_html=true 54 | org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true 55 | org.eclipse.jdt.core.formatter.comment.format_line_comments=true 56 | org.eclipse.jdt.core.formatter.comment.format_source_code=true 57 | org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true 58 | org.eclipse.jdt.core.formatter.comment.indent_root_tags=true 59 | org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=do not insert 60 | org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert 61 | org.eclipse.jdt.core.formatter.comment.line_length=100 62 | org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true 63 | org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true 64 | org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false 65 | org.eclipse.jdt.core.formatter.compact_else_if=true 66 | org.eclipse.jdt.core.formatter.continuation_indentation=2 67 | org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 68 | org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off 69 | org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on 70 | org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 71 | org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true 72 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true 73 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true 74 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true 75 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true 76 | org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true 77 | org.eclipse.jdt.core.formatter.indent_empty_lines=false 78 | org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true 79 | org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true 80 | org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true 81 | org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false 82 | org.eclipse.jdt.core.formatter.indentation.size=4 83 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert 84 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert 85 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert 86 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert 87 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert 88 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert 89 | org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert 90 | org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert 91 | org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert 92 | org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert 93 | org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert 94 | org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert 95 | org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert 96 | org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert 97 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert 98 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert 99 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert 100 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert 101 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert 102 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert 103 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert 104 | org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert 105 | org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert 106 | org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert 107 | org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert 108 | org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert 109 | org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert 110 | org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert 111 | org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert 112 | org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert 113 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert 114 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert 115 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert 116 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert 117 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert 118 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert 119 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert 120 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert 121 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert 122 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert 123 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert 124 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert 125 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert 126 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert 127 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert 128 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert 129 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert 130 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert 131 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert 132 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert 133 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert 134 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert 135 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert 136 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert 137 | org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert 138 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert 139 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert 140 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert 141 | org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert 142 | org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert 143 | org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert 144 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert 145 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert 146 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert 147 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert 148 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert 149 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert 150 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert 151 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert 152 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert 153 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert 154 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert 155 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert 156 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert 157 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert 158 | org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert 159 | org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert 160 | org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert 161 | org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert 162 | org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert 163 | org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert 164 | org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert 165 | org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert 166 | org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert 167 | org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert 168 | org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert 169 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert 170 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert 171 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert 172 | org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert 173 | org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert 174 | org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert 175 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert 176 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert 177 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert 178 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert 179 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert 180 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert 181 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert 182 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert 183 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert 184 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert 185 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert 186 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert 187 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert 188 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert 189 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert 190 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert 191 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert 192 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert 193 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert 194 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert 195 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert 196 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert 197 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert 198 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert 199 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert 200 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert 201 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert 202 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert 203 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert 204 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert 205 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert 206 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert 207 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert 208 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert 209 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert 210 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert 211 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert 212 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert 213 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert 214 | org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert 215 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert 216 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert 217 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert 218 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert 219 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert 220 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert 221 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert 222 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert 223 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert 224 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert 225 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert 226 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert 227 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert 228 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert 229 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert 230 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert 231 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert 232 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert 233 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert 234 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert 235 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert 236 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert 237 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert 238 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert 239 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert 240 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert 241 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert 242 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert 243 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert 244 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert 245 | org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert 246 | org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert 247 | org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert 248 | org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert 249 | org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert 250 | org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert 251 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert 252 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert 253 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert 254 | org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert 255 | org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert 256 | org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert 257 | org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert 258 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert 259 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert 260 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert 261 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert 262 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert 263 | org.eclipse.jdt.core.formatter.join_lines_in_comments=true 264 | org.eclipse.jdt.core.formatter.join_wrapped_lines=false 265 | org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false 266 | org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false 267 | org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false 268 | org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false 269 | org.eclipse.jdt.core.formatter.lineSplit=100 270 | org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false 271 | org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false 272 | org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 273 | org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 274 | org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true 275 | org.eclipse.jdt.core.formatter.tabulation.char=tab 276 | org.eclipse.jdt.core.formatter.tabulation.size=4 277 | org.eclipse.jdt.core.formatter.use_on_off_tags=false 278 | org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false 279 | org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true 280 | org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true 281 | org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true 282 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | formatter_profile=_Clxy 3 | formatter_settings_version=12 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs: -------------------------------------------------------------------------------- 1 | XDOCLETBUILDERACTIVE=true 2 | XDOCLETHOME= 3 | XDOCLETUSEGLOBAL=true 4 | XDOCLETVERSION=1.2.1 5 | eclipse.preferences.version=1 6 | -------------------------------------------------------------------------------- /.settings/org.eclipse.ltk.core.refactoring.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 clxy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BigFileUploadAndroid 2 | ==================== 3 | 4 | ### [☆ English](#english) ### 5 | ### [☆ 中文](#chinese) ### 6 | 7 | Basics 8 | ----------------------------------- 9 | This is a example about how to use the [BigFileUploadJava](https://github.com/clxy/BigFileUploadJava) on Android. 10 | 11 | ### Preparation 12 | Use [BigFileUploadJava](https://github.com/clxy/BigFileUploadJava) require a total of four jar package. 13 | However, because Android built-in an old version of Apache HttpComponents, so we need rename all org.apache.http package names into repack.org.apache.http (or any name you like) to avoid the version conflict, and leave org.apache.commons along. 14 | 15 | #### Here are the jars. 16 | - repack-clxyupload.jar 17 | - repack-httpclient-4.2.5.jar 18 | - repack-httpcore-4.2.4.jar 19 | - repack-httpmime-4.2.5.jar 20 | 21 | http*.Jars are Apache HttpComponents need. repack-clxyupload.jar is [BigFileUploadJava](https://github.com/clxy/BigFileUploadJava) project generated. 22 | 23 | #### If you want to make jars above by yourself. 24 | 1. Download the latest HttpComponents(4.2+) from http://hc.apache.org. 25 | 2. Generate jar file from [BigFileUploadJava](https://github.com/clxy/BigFileUploadJava) project. 26 | 3. And you also need download [jarjar](https://code.google.com/p/jarjar/) too. 27 | 28 | Here is the jarjar rule: 29 | ```rule org.apache.http.** repack.org.apache.http.@1``` 30 | 31 | Execute command(Windows) looks like: 32 | ```Batchfile 33 | java -jar jarjar-1.4.jar process rules.txt httpclient-4.2.5.jar repack-httpclient-4.2.5.jar 34 | java -jar jarjar-1.4.jar process rules.txt httpcore-4.2.4.jar repack-httpcore-4.2.4.jar 35 | java -jar jarjar-1.4.jar process rules.txt httpmime-4.2.5.jar repack-httpmime-4.2.5.jar 36 | java -jar jarjar-1.4.jar process rules.txt clxyupload.jar repack-clxyupload.jar 37 | ``` 38 | 39 | Those content can also be found in the directory [RepackHttpClient](https://github.com/clxy/BigFileUploadAndroid/tree/master/RepackHttpClient). 40 | 41 | * * ** * ** * ** * ** * ** * ** * ** * ** * * 42 | 43 | 44 | 概要 45 | ----------------------------------- 46 | 这是个演示如何在Android上使用[BigFileUploadJava](https://github.com/clxy/BigFileUploadJava)的示例项目。 47 | 48 | ### 准备 49 | 使用[BigFileUploadJava](https://github.com/clxy/BigFileUploadJava)共需要4个jar包。 50 | 但是由于Android内置有旧版本的Apache HttpComponents,所以需要将所有org.apache.http的包名重新命名成repack.org.apache.http(或者你喜欢的任何名字)以避免版本冲突。不要处理org.apache.commons。 51 | 52 | #### 下面是本项目中的jar包。 53 | - repack-clxyupload.jar 54 | - repack-httpclient-4.2.5.jar 55 | - repack-httpcore-4.2.4.jar 56 | - repack-httpmime-4.2.5.jar 57 | 58 | 其中,http*.jar是Apache HttpComponents所需要的。repack-clxyupload.jar是[BigFileUploadJava](https://github.com/clxy/BigFileUploadJava)项目生成的jar包 59 | 60 | #### 如果你想自己制作上述jar包 61 | 1. 从hc.apache.org上自行下载最新版(4.2+)的HttpComponents。 62 | 2. 生成[BigFileUploadJava](https://github.com/clxy/BigFileUploadJava)项目生成的jar包。 63 | 3. 最后,还需要[jarjar](https://code.google.com/p/jarjar/)这个工具。 64 | 65 | jarjar的rule如下: 66 | ```rule org.apache.http.** repack.org.apache.http.@1``` 67 | 68 | 转换命令(Windows)如下: 69 | ```Batchfile 70 | java -jar jarjar-1.4.jar process rules.txt httpclient-4.2.5.jar repack-httpclient-4.2.5.jar 71 | java -jar jarjar-1.4.jar process rules.txt httpcore-4.2.4.jar repack-httpcore-4.2.4.jar 72 | java -jar jarjar-1.4.jar process rules.txt httpmime-4.2.5.jar repack-httpmime-4.2.5.jar 73 | java -jar jarjar-1.4.jar process rules.txt clxyupload.jar repack-clxyupload.jar 74 | ``` 75 | 76 | 上述内容也可以在目录[RepackHttpClient](https://github.com/clxy/BigFileUploadAndroid/tree/master/RepackHttpClient)中找到。 77 | -------------------------------------------------------------------------------- /RepackHttpClient/clxyupload.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/RepackHttpClient/clxyupload.jar -------------------------------------------------------------------------------- /RepackHttpClient/httpclient-4.2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/RepackHttpClient/httpclient-4.2.5.jar -------------------------------------------------------------------------------- /RepackHttpClient/httpcore-4.2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/RepackHttpClient/httpcore-4.2.4.jar -------------------------------------------------------------------------------- /RepackHttpClient/httpmime-4.2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/RepackHttpClient/httpmime-4.2.5.jar -------------------------------------------------------------------------------- /RepackHttpClient/jarjar-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/RepackHttpClient/jarjar-1.4.jar -------------------------------------------------------------------------------- /RepackHttpClient/readme.txt: -------------------------------------------------------------------------------- 1 | For repack latest http client to android. 2 | @see repack.bat 3 | -------------------------------------------------------------------------------- /RepackHttpClient/repack.bat: -------------------------------------------------------------------------------- 1 | java -jar jarjar-1.4.jar process rules.txt httpclient-4.2.5.jar repack-httpclient-4.2.5.jar 2 | java -jar jarjar-1.4.jar process rules.txt httpcore-4.2.4.jar repack-httpcore-4.2.4.jar 3 | java -jar jarjar-1.4.jar process rules.txt httpmime-4.2.5.jar repack-httpmime-4.2.5.jar 4 | java -jar jarjar-1.4.jar process rules.txt clxyupload.jar repack-clxyupload.jar -------------------------------------------------------------------------------- /RepackHttpClient/rules.txt: -------------------------------------------------------------------------------- 1 | rule org.apache.http.** repack.org.apache.http.@1 -------------------------------------------------------------------------------- /RepackHttpClient/rules_airpush.txt: -------------------------------------------------------------------------------- 1 | rule com.from.from.** com.to.to.@1 -------------------------------------------------------------------------------- /libs/repack-clxyupload.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/libs/repack-clxyupload.jar -------------------------------------------------------------------------------- /libs/repack-httpclient-4.2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/libs/repack-httpclient-4.2.5.jar -------------------------------------------------------------------------------- /libs/repack-httpcore-4.2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/libs/repack-httpcore-4.2.4.jar -------------------------------------------------------------------------------- /libs/repack-httpmime-4.2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/libs/repack-httpmime-4.2.5.jar -------------------------------------------------------------------------------- /lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /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-19 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clxy/BigFileUploadAndroid/a07dbd706d9775713f0dc556eec3e0f7c143f00a/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/layout/activity_upload.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 18 | 19 | 28 | 29 |