{"id":13643281,"url":"https://github.com/fishwjy/MultiType-FilePicker","last_synced_at":"2025-04-21T01:32:23.469Z","repository":{"id":54873652,"uuid":"71984071","full_name":"fishwjy/MultiType-FilePicker","owner":"fishwjy","description":"This is a light Android file picker library.","archived":false,"fork":false,"pushed_at":"2021-01-23T09:19:40.000Z","size":21133,"stargazers_count":1404,"open_issues_count":48,"forks_count":252,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-14T22:16:41.735Z","etag":null,"topics":["file-explorer","picker","picker-component","picker-library"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fishwjy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-26T08:46:20.000Z","updated_at":"2025-03-29T08:31:04.000Z","dependencies_parsed_at":"2022-08-14T05:20:42.311Z","dependency_job_id":null,"html_url":"https://github.com/fishwjy/MultiType-FilePicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishwjy%2FMultiType-FilePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishwjy%2FMultiType-FilePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishwjy%2FMultiType-FilePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishwjy%2FMultiType-FilePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fishwjy","download_url":"https://codeload.github.com/fishwjy/MultiType-FilePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968918,"owners_count":21191162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-explorer","picker","picker-component","picker-library"],"created_at":"2024-08-02T01:01:45.136Z","updated_at":"2025-04-21T01:32:18.459Z","avatar_url":"https://github.com/fishwjy.png","language":"Java","readme":"# MultiType-FilePicker\n[![Download](https://api.bintray.com/packages/vincentwoo/maven/MultiTypeFilePicker/images/download.svg) ](https://bintray.com/vincentwoo/maven/MultiTypeFilePicker/_latestVersion)\n\nThis is a light Android file picker library.\n\nPlease star this library if you like it. :)\n\n## Demo\n![Demo](/pic/pick_img.gif)\n![Demo](/pic/pick_img1.gif)\n![Demo](/pic/pick_vid.png)\n![Demo](/pic/pick_aud.png)\n![Demo](/pic/pick_file.png)\n![Demo](/pic/pick_photo_folder.png)\n\n## Usage\n### 1.Import to your project\n    compile 'com.vincent.filepicker:MultiTypeFilePicker:latestVersion' \n    \n### 2.Start Activity For Result\n    case R.id.btn_pick_image:\n\t\tIntent intent1 = new Intent(this, ImagePickActivity.class);\n\t\tintent1.putExtra(IS_NEED_CAMERA, true);\n\t\tintent1.putExtra(Constant.MAX_NUMBER, 9);\n\t\tstartActivityForResult(intent1, Constant.REQUEST_CODE_PICK_IMAGE);\n\t\tbreak;\n\tcase R.id.btn_pick_video:\n\t\tintent2 = new Intent(this, VideoPickActivity.class);\n\t\tintent2.putExtra(IS_NEED_CAMERA, true);\n\t\tintent2.putExtra(Constant.MAX_NUMBER, 9);\n\t\tstartActivityForResult(intent2, Constant.REQUEST_CODE_PICK_VIDEO);\n\t\tbreak;\n\tcase R.id.btn_pick_audio:\n\t\tIntent intent3 = new Intent(this, AudioPickActivity.class);\n\t\tintent3.putExtra(IS_NEED_RECORDER, true);\n\t\tintent3.putExtra(Constant.MAX_NUMBER, 9);\n\t\tstartActivityForResult(intent3, Constant.REQUEST_CODE_PICK_AUDIO);\n\t\tbreak;\n\tcase R.id.btn_pick_file:\n\t\tIntent intent4 = new Intent(this, NormalFilePickActivity.class);\n\t\tintent4.putExtra(Constant.MAX_NUMBER, 9);\n\t\tintent4.putExtra(NormalFilePickActivity.SUFFIX, new String[] {\"xlsx\", \"xls\", \"doc\", \"docx\", \"ppt\", \"pptx\", \"pdf\"});\n\t\tstartActivityForResult(intent4, Constant.REQUEST_CODE_PICK_FILE);\n\t\tbreak;\n\t\t\n### 3.Receive the Result from Activity\n    case Constant.REQUEST_CODE_PICK_IMAGE:\n\t\tif (resultCode == RESULT_OK) {\n            ArrayList\u003cImageFile\u003e list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_IMAGE);\n        }\n        break;\n\tcase Constant.REQUEST_CODE_PICK_VIDEO:\n\t\tif (resultCode == RESULT_OK) {\n            ArrayList\u003cVideoFile\u003e list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_VIDEO);\n        }\n        break;\n    case Constant.REQUEST_CODE_PICK_AUDIO:\n\t\tif (resultCode == RESULT_OK) {\n            ArrayList\u003cAudioFile\u003e list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_AUDIO);\n        }\n        break;\n\tcase Constant.REQUEST_CODE_PICK_FILE:\n\t\tif (resultCode == RESULT_OK) {\n            ArrayList\u003cNormalFile\u003e list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_FILE);\n        }\n        break;\n\n## Version Log\n1.0.0    Initial Version\n\n1.0.1    Fix issue #8 and enhance URL extract\n\n1.0.2    Add resource prefix and update library version\n\n1.0.3    Modify fetching video thumbnail rule\n\n1.0.4    Fix \"Attempted to access a cursor after it has been closed\" in \"onVideoResult\"\n\n1.0.5    Use Glide to load video thumbnail, delete record in Media DB when user cancel taking photo and add prefix to resources\n\n1.0.6    Add folder feature\n\n1.0.7    Upgrade to Glide 4\n\n1.0.8    Fix provider crash on Android 7.0 above\n\n## Thanks\nInspired by [Android-FilePicker](https://github.com/DroidNinja/Android-FilePicker)\n\nImage Viewer provide by [PhotoView](https://github.com/bm-x/PhotoView)\n\nImage Loader provide by [Glide](https://github.com/bumptech/glide)\n\n## License\n```\nCopyright 2016 Vincent Woo\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":["选择器(Picker)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishwjy%2FMultiType-FilePicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffishwjy%2FMultiType-FilePicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishwjy%2FMultiType-FilePicker/lists"}