{"id":15068979,"url":"https://github.com/leoando/android13-photo-picker-samples","last_synced_at":"2025-04-10T17:11:26.086Z","repository":{"id":102995406,"uuid":"461629980","full_name":"LeoAndo/android13-photo-picker-samples","owner":"LeoAndo","description":"Sample for Photo picker (Android 13+)","archived":false,"fork":false,"pushed_at":"2023-03-13T02:10:32.000Z","size":16609,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T14:51:21.457Z","etag":null,"topics":["android-compose","android-java","android-kotlin","android13","java11","material3","tiramisu"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeoAndo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"LeoAndo"}},"created_at":"2022-02-20T22:09:39.000Z","updated_at":"2024-11-01T13:52:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"24695b0d-c3bf-4587-889b-71b148d2fd35","html_url":"https://github.com/LeoAndo/android13-photo-picker-samples","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/LeoAndo%2Fandroid13-photo-picker-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2Fandroid13-photo-picker-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2Fandroid13-photo-picker-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoAndo%2Fandroid13-photo-picker-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoAndo","download_url":"https://codeload.github.com/LeoAndo/android13-photo-picker-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261609,"owners_count":21074223,"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-compose","android-java","android-kotlin","android13","java11","material3","tiramisu"],"created_at":"2024-09-25T01:39:55.463Z","updated_at":"2025-04-10T17:11:26.078Z","avatar_url":"https://github.com/LeoAndo.png","language":"Kotlin","funding_links":["https://github.com/sponsors/LeoAndo"],"categories":[],"sub_categories":[],"readme":"# Overview\n\nSample for [Photo picker](https://developer.android.com/about/versions/13/features#photo-picker) (Android 13 +)\u003cbr\u003e\n[日本語版 README](https://github.com/LeoAndo/android-photo-picker-samples/tree/main/README_JP)\n\n# development environment\n\u003cimg width=\"614\" alt=\"スクリーンショット 2022-02-21 21 33 57\" src=\"https://user-images.githubusercontent.com/16476224/154956110-46c5f9ac-53b9-4469-af07-40f36bcabf57.png\"\u003e\n\n\n# Dev Memo\n- Photo picker allows you to access Media without Runtime Permission\n- [Define sharing limitations](https://developer.android.com/about/versions/13/features/photopicker#define_sharing_limitations)\n  - The value of this intent-extra should be a positive integer greater than 1 and less than or equal to [MediaStore#getPickImagesMaxLimit](https://developer.android.com/reference/android/provider/MediaStore#getPickImagesMaxLimit()), otherwise Activity#RESULT_CANCELED is returned.\n- The official documentation uses the deprecated onActivityResult, but you can use the recommended API ActivityResultLauncher.\n  - https://github.com/LeoAndo/ActivityResultContractsKotlinSample\n  - https://github.com/LeoAndo/ActivityResultContractsJavaSample \n\n\n# Test Data\n- mp4\n  - https://samplelib.com/sample-mp4.html\n- png\n  - https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png\n  - https://assets.pokemon.com/assets/cms2/img/pokedex/full/500.png \n\n# [For Compose](https://github.com/LeoAndo/android-photo-picker-samples/tree/main/PhotoPickerComposeSample)\n- material3\n- VideoView (AndroidView)\n- Use Jetpack Library API\n\n# [For Kotlin](https://github.com/LeoAndo/android-photo-picker-samples/tree/main/PhotoPickerKotlinSample)\n- material2\n- Use Jetpack Library API\n\n# [For Java](https://github.com/LeoAndo/android-photo-picker-samples/tree/main/PhotoPickerJavaSample)\n- use Java 11 API\n- Material2\n- Not Use Jetpack Library API\n\n# Capture Pixel 4 API Tiramisu\n\n| Compose | View |\n|:---|:---:|\n|\u003cimg src=\"https://github.com/LeoAndo/android-photo-picker-samples/blob/main/PhotoPickerComposeSample/capture.gif\" width=320 /\u003e |\u003cimg src=\"https://github.com/LeoAndo/android-photo-picker-samples/blob/main/PhotoPickerJavaSample/capture.gif\" width=320 /\u003e |\n\n# refs\nhttps://developer.android.com/about/versions/13/features#photo-picker\u003cbr\u003e\nhttps://developer.android.com/about/versions/13/features/photopicker\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoando%2Fandroid13-photo-picker-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoando%2Fandroid13-photo-picker-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoando%2Fandroid13-photo-picker-samples/lists"}