{"id":15040957,"url":"https://github.com/erikagtierrez/multiple-media-picker","last_synced_at":"2025-04-09T23:19:01.145Z","repository":{"id":57719113,"uuid":"73394151","full_name":"erikagtierrez/multiple-media-picker","owner":"erikagtierrez","description":"An android library to pick multiple images and/or videos from built-in gallery. :camera: :gem: :boom:","archived":false,"fork":false,"pushed_at":"2020-08-23T18:04:23.000Z","size":1205,"stargazers_count":191,"open_issues_count":2,"forks_count":46,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-02T16:50:06.134Z","etag":null,"topics":["android","android-app","android-library","gallery","video"],"latest_commit_sha":null,"homepage":"","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/erikagtierrez.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-11-10T15:20:31.000Z","updated_at":"2025-02-28T15:24:00.000Z","dependencies_parsed_at":"2022-09-26T21:40:34.787Z","dependency_job_id":null,"html_url":"https://github.com/erikagtierrez/multiple-media-picker","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/erikagtierrez%2Fmultiple-media-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikagtierrez%2Fmultiple-media-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikagtierrez%2Fmultiple-media-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikagtierrez%2Fmultiple-media-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikagtierrez","download_url":"https://codeload.github.com/erikagtierrez/multiple-media-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125644,"owners_count":21051778,"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":["android","android-app","android-library","gallery","video"],"created_at":"2024-09-24T20:45:19.902Z","updated_at":"2025-04-09T23:19:01.119Z","avatar_url":"https://github.com/erikagtierrez.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiple Media Picker :boom: :star2:\n### An android library to pick multiple images and/or videos from built-in gallery. This library is encouraged to use as little memory as possible. \n\n## NOTE: This was created +4 years ago and I am not making any kind of updates since +2 years. If you feel like this library can help you, feel free to fork or contribute creating pull requess (:\n\n![](https://img.shields.io/badge/license-APACHE%202-ff69b4.svg) ![](\thttps://img.shields.io/badge/bintray-v.1.0.5-673AB7.svg)\n\n![](https://raw.githubusercontent.com/erikagtierrez/multiple-media-picker/master/cover.jpg)\n\n#### Feel free to ask(or request) me anything about it, just create an issue!\n\n# Usage\nInclude easily in your project adding the dependency to your build.gradle file.  \n\n```gradle\ndependencies {\n  compile 'com.erikagtierrez.multiple_media_picker:multiple-media-picker:1.0.5'\n}\n```\n# Getting started\nIn the activity from where you want to call the library, declare\n\n```java\n    static final int OPEN_MEDIA_PICKER = 1;  // Request code\n```\n\nand request permissions to read external storage\n\n```java\n    Manifest.permission.READ_EXTERNAL_STORAGE\n```\n\nCreate the intent\n\n```java\n    Intent intent= new Intent(this, Gallery.class);\n    // Set the title\n    intent.putExtra(\"title\",\"Select media\");\n    // Mode 1 for both images and videos selection, 2 for images only and 3 for videos!\n    intent.putExtra(\"mode\",1); \n    intent.putExtra(\"maxSelection\",3); // Optional\n    startActivityForResult(intent,OPEN_MEDIA_PICKER);\n```\n\nand override onActivityResult \n\n```java\n@Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        // Check which request we're responding to\n        if (requestCode == OPEN_MEDIA_PICKER) {\n            // Make sure the request was successful\n            if (resultCode == RESULT_OK \u0026\u0026 data != null) {\n                 ArrayList\u003cString\u003e selectionResult=data.getStringArrayListExtra(\"result\");\n            }\n        }\n    }\n```\n\n## Custom styles\n\nThe primary colors will be inherited from the project it was called. But you can customize a little more by adding to your `colors.xml`\n\nTitle and back button color\n```xml\n \u003ccolor name=\"titleTextColor\"\u003e#000000\u003c/color\u003e  \n```\nUnselected image/video tab title\n```xml\n \u003ccolor name=\"titleTabColor\"\u003e#000000\u003c/color\u003e   \n```\nSelected image/video tab title!\n```xml\n\u003ccolor name=\"titleSelectedTabColor\"\u003e#E040FB\u003c/color\u003e\n``` \n\nMake sure to override the titleTextColor inside your theme in `styles.xml`\n\n```xml\n\u003citem name=\"titleTextColor\"\u003e@color/titleTextColor\u003c/item\u003e\n```\n\n# License\n\n```\nCopyright 2016 Erika Gutierrez\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\nhttp://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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikagtierrez%2Fmultiple-media-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikagtierrez%2Fmultiple-media-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikagtierrez%2Fmultiple-media-picker/lists"}