{"id":19947043,"url":"https://github.com/ko-devhong/android-multi-pickers","last_synced_at":"2026-06-08T04:32:58.645Z","repository":{"id":46170897,"uuid":"515139885","full_name":"ko-devHong/android-multi-pickers","owner":"ko-devHong","description":"https://github.com/LuckSiege/PictureSelector fork project","archived":false,"fork":false,"pushed_at":"2023-02-06T08:24:03.000Z","size":9786,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T14:18:03.280Z","etag":null,"topics":[],"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/ko-devHong.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-18T10:37:48.000Z","updated_at":"2022-07-18T10:46:14.000Z","dependencies_parsed_at":"2024-11-13T00:46:21.443Z","dependency_job_id":null,"html_url":"https://github.com/ko-devHong/android-multi-pickers","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ko-devHong/android-multi-pickers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ko-devHong%2Fandroid-multi-pickers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ko-devHong%2Fandroid-multi-pickers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ko-devHong%2Fandroid-multi-pickers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ko-devHong%2Fandroid-multi-pickers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ko-devHong","download_url":"https://codeload.github.com/ko-devHong/android-multi-pickers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ko-devHong%2Fandroid-multi-pickers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34048681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T00:34:03.577Z","updated_at":"2026-06-08T04:32:58.628Z","avatar_url":"https://github.com/ko-devHong.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PictureSelector 2.0\n\nA Picture Selector for Android platform, support from the album to obtain pictures, video, audio \u0026 photo, support crop (single picture or multi-picture crop), compression, theme custom configuration and other functions, support dynamic access \u0026 adapt to Android 5.0+ system of open source picture selection framework。\u003cbr\u003e\n\n# This is https://github.com/LuckSiege/PictureSelector Fork Project\n\n[![](https://jitpack.io/v/LuckSiege/PictureSelector.svg)](https://jitpack.io/#LuckSiege/PictureSelector)\n[![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg)](https://github.com/LuckSiege)\n[![CSDN](https://img.shields.io/twitter/url/http/blog.csdn.net/luck_mw.svg?style=social)](http://blog.csdn.net/luck_mw)\n[![I](https://img.shields.io/github/issues/LuckSiege/PictureSelector.svg)](https://github.com/ko-devHong/android-multi-pickers/issues)\n[![Star](https://img.shields.io/github/stars/LuckSiege/PictureSelector.svg)](https://github.com/LuckSiege/PictureSelector)\n\n## Directory\n\n-[Or use Gradle](#Version)\u003cbr\u003e -[Update Log](https://github.com/ko-devHong/android-multi-pickers/releases/tag/v2.8.8)\u003cbr\u003e -[Style Configuration-Xml](https://github.com/LuckSiege/PictureSelector/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%BB%E9%A2%98-Xml%E6%96%B9%E5%BC%8F)\u003cbr\u003e -[Style Configuration-Code](\u003chttps://github.com/LuckSiege/PictureSelector/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8A%A8%E6%80%81%E4%B8%BB%E9%A2%98(%E5%8C%85%E5%90%AB%E8%A3%81%E5%89%AA%E3%80%81%E7%9B%B8%E5%86%8C%E5%90%AF%E5%8A%A8%E5%8A%A8%E7%94%BB)-Code%E6%96%B9%E5%BC%8F\u003e)\u003cbr\u003e -[Demo Effect](#Effect)\u003cbr\u003e -[Api Explain](https://github.com/LuckSiege/PictureSelector/wiki/PictureSelector-Api)\u003cbr\u003e -[PictureSelector Path Desc](https://github.com/LuckSiege/PictureSelector/wiki/PictureSelector-%E8%B7%AF%E5%BE%84%E8%AF%B4%E6%98%8E)\u003cbr\u003e -[Open Photo Album](#Photo)\u003cbr\u003e -[Open Camera](#Camera)\u003cbr\u003e -[Custom Camera](#CustomCamera)\u003cbr\u003e -[Results Callback](https://github.com/LuckSiege/PictureSelector/wiki/Result-Callback)\u003cbr\u003e -[Cache Clear](#CacheClear)\u003cbr\u003e -[Confusion](#Confusion)\u003cbr\u003e -[License](#License)\u003cbr\u003e\n\n## Deploy\n\n```sh\n ./gradlew assembleRelease\n ./gradlew publish\n```\n\n## Version\n\n```sh\nrepositories {\n  google()\n  mavenCentral()\n}\n\ndependencies {\n  implementation 'io.github.ko-devHong:pictureselector:v2.8.8'\n}\n```\n\nOr Maven:\n\n```sh\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.ko-devHong\u003c/groupId\u003e\n  \u003cartifactId\u003epictureselector\u003c/artifactId\u003e\n  \u003cversion\u003ev2.8.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Photo\n\nQuick call, more functions [More](https://github.com/ko-devHong/android-multi-pickers/wiki/PictureSelector-Api)\n\n1、onActivityResult\n\n```sh\n PictureSelector.create(this)\n   .openGallery(PictureMimeType.ofImage())\n   .imageEngine(GlideEngine.createGlideEngine()) // Please refer to the Demo GlideEngine.java\n   .forResult(PictureConfig.CHOOSE_REQUEST);\n\n    @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n        if (resultCode == RESULT_OK) {\n            switch (requestCode) {\n                case PictureConfig.CHOOSE_REQUEST:\n                    // onResult Callback\n                    List\u003cLocalMedia\u003e result = PictureSelector.obtainMultipleResult(data);\n                    break;\n                default:\n                    break;\n            }\n        }\n```\n\n2、Callback\n\n```sh\n PictureSelector.create(this)\n   .openGallery(PictureMimeType.ofAll())\n   .imageEngine(GlideEngine.createGlideEngine())\n   .forResult(new OnResultCallbackListener\u003cLocalMedia\u003e() {\n       @Override\n       public void onResult(List\u003cLocalMedia\u003e result) {\n            // onResult Callback\n       }\n\n       @Override\n       public void onCancel() {\n            // onCancel Callback\n       }\n     });\n```\n\n## Camera\n\nQuick Use, separately start the photo or video according to PictureMimeType automatic recognition [More](https://github.com/ko-devHong/PictureSelector/wiki/PictureSelector-Api)\n\nonActivityResult\n\n```sh\n PictureSelector.create(this)\n   .openCamera(PictureMimeType.ofImage())\n   .imageEngine(GlideEngine.createGlideEngine()) // Please refer to the Demo GlideEngine.java\n   .forResult(PictureConfig.REQUEST_CAMERA); \n\n    @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n        if (resultCode == RESULT_OK) {\n            switch (requestCode) {\n                case PictureConfig.REQUEST_CAMERA:\n                    // onResult Callback\n                    List\u003cLocalMedia\u003e result = PictureSelector.obtainMultipleResult(data);\n                    break;\n                default:\n                    break;\n            }\n        }\n```\n\nCallback\n\n```sh\nPictureSelector.create(this)\n   .openCamera(PictureMimeType.ofImage())\n   .imageEngine(GlideEngine.createGlideEngine())\n   .forResult(new OnResultCallbackListener\u003cLocalMedia\u003e() {\n       @Override\n       public void onResult(List\u003cLocalMedia\u003e result) {\n            // onResult Callback\n       }\n\n       @Override\n       public void onCancel() {\n            // onCancel Callback\n       }\n     });\n```\n\n## CustomCamera\n\nIf you need to use a custom camera you need to set up\n\n```\n.isUseCustomCamera(true);\n```\n\nApplication implementing interface\n\n```sh\n public class App extends Application implements CameraXConfig.Provider {\n    private static final String TAG = App.class.getSimpleName();\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n    }\n\n    @NonNull\n    @Override\n    public CameraXConfig getCameraXConfig() {\n        return Camera2Config.defaultConfig();\n    }\n }\n```\n\n## CacheClear\n\n```sh\n // Include clipped and compressed cache, to be called upon successful upload, type refers to the image or video cache depending on which ofImage or ofVideo you set up note: system sd card permissions are required\n PictureCacheManager.deleteCacheDirFile(this,type);\n // Clear all temporary files generated by caching such as compression, clipping, video, and audio\n PictureCacheManager.deleteAllCacheDirFile(this);\n // Clear the cache and refresh the gallery\n  PictureCacheManager.deleteAllCacheDirRefreshFile(this);\n // Clear the cache and refresh the gallery\n PictureCacheManager.deleteAllCacheDirFile(this, new OnCallbackListener\u003cString\u003e() {\n            @Override\n            public void onCall(String absolutePath) {\n                // Refresh the photo album\n            }\n        });\n```\n\n## Preview Image\n\n```\n// Preview picture can be customized length press save path\n*Prompt .themeStyle(R.style.theme)；Inside the parameters can not be deleted, otherwise crash...\n\nPictureSelector.create(this)\n .themeStyle(R.style.picture_default_style)\n .isNotPreviewDownload(true)\n .imageEngine(GlideEngine.createGlideEngine())\n .openExternalPreview(position, result);\n\n```\n\n## Preview Video\n\n```sh\nPictureSelector.create(this).externalPictureVideo(video_path);\n```\n\n## Project use libraries\n\n- PhotoView\n- luban\n- ucrop\n\n## Confusion\n\n```sh\n#PictureSelector 2.0\n-keep class com.luck.picture.lib.** { *; }\n\n#Ucrop\n-dontwarn com.yalantis.ucrop**\n-keep class com.yalantis.ucrop** { *; }\n-keep interface com.yalantis.ucrop** { *; }\n\n\n```\n\n## License\n\n```sh\n   Copyright 2017 Luck\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n```\n\n## Contact\n\nAndroid Group [662320389]() \u003cbr\u003e\nAndroid Group 1 [619458861]() (biggest) \u003cbr\u003e\nAndroid Group 2 [679824206]() (biggest) \u003cbr\u003e\nAndroid Group 3 [854136996]() (biggest) \u003cbr\u003e\nQQ [893855882]() \u003cbr\u003e\n\n## Effect\n\n|     Single Mode     |        Mixed Mode         |\n| :-----------------: | :-----------------------: |\n| ![](image/home.jpg) | ![](image/home_mixed.jpg) |\n\n|             Default Style              |                    Preview                     |               Multiple Crop                |\n| :------------------------------------: | :--------------------------------------------: | :----------------------------------------: |\n| ![](image/picture_default_style_1.jpg) | \u003cimg src=\"image/picture_default_style_2.jpg\"/\u003e | ![](image/picture_default_style_new_3.jpg) |\n\n|             Digital Style              |                Preview                 |             Multiple Crop              |\n| :------------------------------------: | :------------------------------------: | :------------------------------------: |\n| ![](image/picture_num_style_new_1.jpg) | ![](image/picture_num_style_new_2.jpg) | ![](image/picture_num_style_new_3.jpg) |\n\n|             White Style             |                 Preview                 |               Single Crop               |\n| :---------------------------------: | :-------------------------------------: | :-------------------------------------: |\n| ![](image/picture_sina_style_1.jpg) | ![](image/picture_sina_style_new_2.jpg) | ![](image/picture_sina_style_new_3.jpg) |\n\n|               New Style               |                Preview                |               Multiple Crop               |\n| :-----------------------------------: | :-----------------------------------: | :---------------------------------------: |\n| ![](image/picture_wechat_style_1.jpg) | ![](image/picture_wechat_style_2.jpg) | ![](image/picture_wechat_style_new_3.jpg) |\n\n|           Photo Album Directory           |                 Single Mode                  |                 Circular Crop                  |\n| :---------------------------------------: | :------------------------------------------: | :--------------------------------------------: |\n| ![](image/picture_wechat_album_style.jpg) | ![](image/picture_wechat_single_style_3.jpg) | ![](image/picture_circular_crop_new_style.jpg) |\n\n|             White Style             |            Video             |            Audio             |\n| :---------------------------------: | :--------------------------: | :--------------------------: |\n| ![](image/picture_white_style.jpeg) | ![](image/picture_video.jpg) | ![](image/picture_audio.jpg) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fko-devhong%2Fandroid-multi-pickers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fko-devhong%2Fandroid-multi-pickers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fko-devhong%2Fandroid-multi-pickers/lists"}