{"id":13611343,"url":"https://github.com/rosuH/AndroidFilePicker","last_synced_at":"2025-04-13T04:33:58.669Z","repository":{"id":38361262,"uuid":"158897052","full_name":"rosuH/AndroidFilePicker","owner":"rosuH","description":"FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~","archived":false,"fork":false,"pushed_at":"2024-04-10T21:27:19.000Z","size":1682,"stargazers_count":1038,"open_issues_count":14,"forks_count":91,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-12T12:53:44.897Z","etag":null,"topics":["android","file-browser","file-picker"],"latest_commit_sha":null,"homepage":"https://afp.rosuh.me","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rosuH.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":"2018-11-24T02:53:29.000Z","updated_at":"2025-04-10T09:55:10.000Z","dependencies_parsed_at":"2023-12-07T15:28:43.058Z","dependency_job_id":"667a0504-0195-49d3-9252-0952e05c4da4","html_url":"https://github.com/rosuH/AndroidFilePicker","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosuH%2FAndroidFilePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosuH%2FAndroidFilePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosuH%2FAndroidFilePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosuH%2FAndroidFilePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosuH","download_url":"https://codeload.github.com/rosuH/AndroidFilePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248664867,"owners_count":21142057,"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","file-browser","file-picker"],"created_at":"2024-08-01T19:01:54.387Z","updated_at":"2025-04-13T04:33:58.638Z","avatar_url":"https://github.com/rosuH.png","language":"Kotlin","readme":"![Banner](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/AndroidFilePicker_Banner_Dr_Sugiyama.png)\n\n# Android File Picker🛩️\n\n[![](https://jitpack.io/v/me.rosuh/AndroidFilePicker.svg)](https://jitpack.io/#me.rosuh/AndroidFilePicker)\n\n[中文简体](./README_CN.md)\n\nIf you're using `0.x` version, checkout the [README_0.x](./README_0.x.md) file.\n\nWell, it doesn't have a name like Rocky, Cosmos or Fish. Android File Picker, like its name, is a local file selector framework. Some of his characteristics are described below:\n\n- Launcher in Activity or Fragment\n  - Start with a single line of code\n- Browse and select all files in local storage\n  - Custom Root path to start\n  - Built-in default file type and file discriminator\n  - Or you can implement the file type yourself\n- Built in Single Choice mode and Multiple Choice mode.\n- Custom list filter\n  - Just want to show pictures(Or videos, audio...)?  No problem!\n  - Of course, you can just display the folder\n- Custom item click event: only need to implement the listener\n- Apply different themes, including four built-in themes and custom themes\n- More to find out yourself\n\n|                    Rail                     |                         Reply                          |                         Crane                          |                         Shrine                         |\n| :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: |\n| ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/default_theme.png) | ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/reply_theme.png) | ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/crane_theme.png) | ![](https://raw.githubusercontent.com/rosuH/AndroidFilePicker/master/images/shrine_theme.png) |\n\n## Version Compatibility\nIt depends on your targetAPI.\n\n- `targetAPI \u003e 33`, may be you are finding [photo picker](https://developer.android.com/about/versions/14/changes/partial-photo-video-access?hl=zh-cn#media-reselection)\n- `targetAPI == 33`\n  - Handle [media permissions](https://developer.android.com/training/data-storage/shared/media#access-other-apps-files) by your onw \n  - This lib will only show media files which your app has permission to access\n- `targetAPI \u003c= 33`\n  - Set `android:requestLegacyExternalStorage=\"true\"` in your `AndroidManifest.xml` file\n  - Handler `android.permission.READ_EXTERNAL_STORAGE` permission by your own\n  - This lib will show all files in your storage\n\n## Download\n\n[Gradle](https://docs.jitpack.io/android/#installing):\n\nIn your project `build.gradle`:\n\n```xml\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nIn your module `build.gradle`:\n\n```xml\ndependencies {\n    implementation 'me.rosuh:AndroidFilePicker:$latest_version'\n}\n```\nThis lib now support AndroidX, check the version below.\n\nCheck out [releases page](https://github.com/rosuH/AndroidFilePicker/releases) to see more versions.\n\n## Usage 📑 \n\n### Permission\n\nYou should request permission by yourself, this lib will not request permission for you.\nSee [Version Compatibility](#version-compatibility) for more details.\n\n### Launch 🚀 \n\n```kotlin\nFilePickerManager\n        .from(context)\n        .forResult(FilePickerManager.REQUEST_CODE)\n```\n\n\n\n### Receive Result\n\nIn `onActivityResult()` callback of the starting `Activity` or `Fragment`:\n\n```kotlin\noverride fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {\n    when (requestCode) {\n        FilePickerManager.instance.REQUEST_CODE -\u003e {\n            if (resultCode == Activity.RESULT_OK) {\n                val list = FilePickerManager.instance.obtainData()\n                // do your work\n            } else {\n                Toast.makeText(this@SampleActivity, \"You didn't choose anything~\", Toast.LENGTH_SHORT).show()\n            }\n        }\n    }\n}\n```\n\nThe result is a path list of the selected file (`ArrayList\u003cString\u003e()`).\n\n\n## Docs\n\n- [Source Code Explanation](https://github.com/rosuH/AndroidFilePicker/wiki/4.-%E7%A4%BA%E4%BE%8B%E5%8F%8A%E8%A7%A3%E9%87%8A).\n\n- [Change Log](https://github.com/rosuH/AndroidFilePicker/wiki/Change-Log)\n\n- [TODO](https://github.com/rosuH/AndroidFilePicker/wiki/TODO)\n\n\n\n---\n\n## Special Thanks To:\n\n- [whichName](https://github.com/whichname)\n- [Matisse](https://github.com/zhihu/Matisse)\n- [Default Icon Author Shulk](http://iconfont.cn/collections/detail?spm=a313x.7781069.1998910419.d9df05512\u0026cid=11271)\n- [Theme Color](https://material.io/design/material-studies/about-our-material-studies.html)\n- [Empty icon](https://github.com/rosuH/AndroidFilePicker/blob/master/filepicker/src/main/res/drawable/ic_empty_file_list_file_picker.xml) made by [freepik](https://www.freepik.com/) from www.flaticon.com\n","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FrosuH%2FAndroidFilePicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FrosuH%2FAndroidFilePicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FrosuH%2FAndroidFilePicker/lists"}