{"id":18359549,"url":"https://github.com/zfdang/android-multiple-images-selector","last_synced_at":"2025-08-12T22:38:42.099Z","repository":{"id":48786166,"uuid":"56037374","full_name":"zfdang/android-multiple-images-selector","owner":"zfdang","description":"Easy-to-use library to select images in Android application","archived":false,"fork":false,"pushed_at":"2022-04-27T03:46:03.000Z","size":37089,"stargazers_count":241,"open_issues_count":24,"forks_count":109,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-20T03:07:35.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zfdang.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-04-12T06:31:41.000Z","updated_at":"2025-02-06T23:05:24.000Z","dependencies_parsed_at":"2022-07-26T00:47:05.620Z","dependency_job_id":null,"html_url":"https://github.com/zfdang/android-multiple-images-selector","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zfdang/android-multiple-images-selector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfdang%2Fandroid-multiple-images-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfdang%2Fandroid-multiple-images-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfdang%2Fandroid-multiple-images-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfdang%2Fandroid-multiple-images-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zfdang","download_url":"https://codeload.github.com/zfdang/android-multiple-images-selector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfdang%2Fandroid-multiple-images-selector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270148249,"owners_count":24535696,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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-05T22:23:16.771Z","updated_at":"2025-08-12T22:38:42.062Z","avatar_url":"https://github.com/zfdang.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Multiple Images Selector\n\nEasy-to-use library to select images in Android application\n\nFeatures:\n\n* select images by folders\n* support to set max number of images to be selected\n* allow filter images with tiny size (configurable)\n* fast scroll of image list\n* support to capture images from camera\n* compitable with android 6.0\n* support Chinese / English\n\nNOTE: this library depends on Fresco / rxjava. \n\n# How does it work (GIF)\n![Demo](demo.gif)   ![Demo](capture.gif)\n\nDownload demo apk here: [demo](multiple-images-selector-demo.apk)\n\n# How to use this library in your application\n\n## 1. add \"multiple-images-selector\" dependency\n\nmultiple-images-selector is now available in jcenter.\n\nAdd \"multiple-images-selector\" as dependency to your app:\n\n    compile 'com.zfdang.multiple-images-selector:multiple-images-selector:1.1.5'\n\n\n## 2. Initialize Fresco \u0026 Add selector activity in your app's manifest\nPermission \u0026 Application \u0026 Activity:\n\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n    \u003c!--the following two permissions are required if you want to take photo in selector--\u003e\n    \u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\n    \n    \u003capplication\n    \t ...\n        android:name=\".DemoApplication\"\n        ...\n        \n        \u003cactivity\n            android:name=\"com.zfdang.multiple_images_selector.ImagesSelectorActivity\"\n            android:configChanges=\"orientation|screenSize\"/\u003e\n        \n\t\u003c/application\u003e\n\nApplication intialization:\n\n\tpublic class DemoApplication extends Application\n\t{\n    \t@Override\n    \tpublic void onCreate() {\n        super.onCreate();\n\n        // the following line is important\n        Fresco.initialize(getApplicationContext());\n    \t}\n\t}\n \n\n\n## 3. Launch images selector:\n\n\t// class variables\n    private static final int REQUEST_CODE = 123;\n    private ArrayList\u003cString\u003e mResults = new ArrayList\u003c\u003e();\n\n    // start multiple photos selector\n    Intent intent = new Intent(DemoActivity.this, ImagesSelectorActivity.class);\n    // max number of images to be selected\n    intent.putExtra(SelectorSettings.SELECTOR_MAX_IMAGE_NUMBER, 5);\n    // min size of image which will be shown; to filter tiny images (mainly icons)\n    intent.putExtra(SelectorSettings.SELECTOR_MIN_IMAGE_SIZE, 100000);\n    // show camera or not\n    intent.putExtra(SelectorSettings.SELECTOR_SHOW_CAMERA, true);\n    // pass current selected images as the initial value\n    intent.putStringArrayListExtra(SelectorSettings.SELECTOR_INITIAL_SELECTED_LIST, mResults);\n    // start the selector\n    startActivityForResult(intent, REQUEST_CODE);\n\n\n## 4. get results by\n    @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        // get selected images from selector\n        if(requestCode == REQUEST_CODE) {\n            if(resultCode == RESULT_OK) {\n                mResults = data.getStringArrayListExtra(SelectorSettings.SELECTOR_RESULTS);\n                assert mResults != null;\n\n                // show results in textview\n                StringBuffer sb = new StringBuffer();\n                sb.append(String.format(\"Totally %d images selected:\", mResults.size())).append(\"\\n\");\n                for(String result : mResults) {\n                    sb.append(result).append(\"\\n\");\n                }\n                tvResults.setText(sb.toString());\n            }\n        }\n        super.onActivityResult(requestCode, resultCode, data);\n    }\n\n\n\n## 5. Q\u0026A:\n\nIssue 1:\t\n\t\n\tandroid.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class com.facebook.drawee.view.SimpleDraweeView\n\nSolution:\tmake sure Fresco is initialized in app properly.\n\n\tandroid:name=\".DemoApplication\"\n\t...\n\tFresco.initialize(getApplicationContext());\n\nIssue 2:\n\t\n\tApp crash while loading large amount of images\n\t\nSolution: disable hardware acceleration for activity\n\n\t\u003cactivity\n        android:name=\"com.zfdang.multiple_images_selector.ImagesSelectorActivity\"\n        android:hardwareAccelerated=\"false\"\n        android:configChanges=\"orientation|screenSize\"/\u003e\n\n\t\n# License\n\nMultiple-Images-Selector is [MIT-licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfdang%2Fandroid-multiple-images-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzfdang%2Fandroid-multiple-images-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfdang%2Fandroid-multiple-images-selector/lists"}