[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7607":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":15,"starSnapshotCount":15,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},7607,"EasyImage","jkwiecien\u002FEasyImage","jkwiecien","Library for picking pictures from gallery or camera",null,"Kotlin",1789,297,43,88,0,4,52.82,false,"master",true,[],"2026-06-12 04:00:35","[![Android Arsenal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid%20Arsenal-EasyImage-green.svg?style=true)](https:\u002F\u002Fandroid-arsenal.com\u002Fdetails\u002F1\u002F2725) [![](https:\u002F\u002Fjitpack.io\u002Fv\u002Fjkwiecien\u002FEasyImage.svg)](https:\u002F\u002Fjitpack.io\u002F#jkwiecien\u002FEasyImage)\n# What is it?\nEasyImage allows you to easily capture images and videos from the gallery, camera or documents without creating lots of boilerplate.\n\n# Setup\n\n## Runtime permissions\nNo additional permisions are required if you DO NOT `use setCopyImagesToPublicGalleryFolder()` setting. But if you do:\n\n### For devices running Android 10 and newer:\nNothing is required\n\n### For devices running Android 9 or lower:\nPermission need to be specified in Manifest:\n```xml\n\u003Cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" \u002F>\n```\n\nAlso you'll need to ask for this permission in the runtime in the moment of your choice. Sample app does that.\n\n**There is also one issue about runtime permissions**. According to the docs: \n\n    If your app targets M and above and declares as using the CAMERA permission which is not granted, then attempting to use this action will result in a SecurityException.\n\nFor this reason, if your app uses `CAMERA` permission, you should check it along **with** `WRITE_EXTERNAL_STORAGE` before calling `EasyImage.openCamera()`\n\n## Gradle dependency\nGet the latest version from jitpack\n\n[![](https:\u002F\u002Fjitpack.io\u002Fv\u002Fjkwiecien\u002FEasyImage.svg)](https:\u002F\u002Fjitpack.io\u002F#jkwiecien\u002FEasyImage)\n\n# Usage\n## Essentials\n\nCreate your EasyImageInstance like this:\n```java\nEasyImage easyImage = new EasyImage.Builder(context)\n\n\u002F\u002F Chooser only\n\u002F\u002F Will appear as a system chooser title, DEFAULT empty string\n\u002F\u002F.setChooserTitle(\"Pick media\")\n\u002F\u002F Will tell chooser that it should show documents or gallery apps\n\u002F\u002F.setChooserType(ChooserType.CAMERA_AND_DOCUMENTS)  you can use this or the one below\n\u002F\u002F.setChooserType(ChooserType.CAMERA_AND_GALLERY)\n\u002F\u002F saving EasyImage state (as for now: last camera file link)\n.setMemento(memento)\n\n\u002F\u002F Setting to true will cause taken pictures to show up in the device gallery, DEFAULT false\n.setCopyImagesToPublicGalleryFolder(false)\n\u002F\u002F Sets the name for images stored if setCopyImagesToPublicGalleryFolder = true\n.setFolderName(\"EasyImage sample\")\n\n\u002F\u002F Allow multiple picking\n.allowMultiple(true)\n.build();\n```\n\n### Taking image straight from camera\n- `easyImage.openCameraForImage(Activity activity,);`\n- `easyImage.openCameraForImage(Fragment fragment);`\n\n### Capturing video\n- `easyImage.openCameraForVideo(Activity activity);`\n- `easyImage.openCameraForVideo(Fragment fragment);`\n\n### Taking image from gallery or the gallery picker if there is more than 1 gallery app\n- `easyImage.openGallery(Activity activity);`\n- `easyImage.openGallery(Fragment fragment);`\n\n### Taking image from documents\n- `easyImage.openDocuments(Activity activity);`\n- `easyImage.openDocuments(Fragment fragment);`\n\n### Displaying system picker to chose from camera, documents, or gallery if no documents apps are available\n- `easyImage.openChooser(Activity activity);`\n- `easyImage.openChooser(Fragment fragment);`\n\n### Getting the photo file\n\n```java\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n\n        easyImage.handleActivityResult(requestCode, resultCode, data, this, new DefaultCallback() {\n            @Override\n            public void onMediaFilesPicked(MediaFile[] imageFiles, MediaSource source) {\n                onPhotosReturned(imageFiles);\n            }\n\n            @Override\n            public void onImagePickerError(@NonNull Throwable error, @NonNull MediaSource source) {\n                \u002F\u002FSome error handling\n                error.printStackTrace();\n            }\n\n            @Override\n            public void onCanceled(@NonNull MediaSource source) {\n                \u002F\u002FNot necessary to remove any files manually anymore\n            }\n        });\n    }\n```\n\n# Known issues\nLibrary was pretty much rewritten from scratch in kotlin on 29.03.2019. Initial version 3.0.0 might be unstable. In case of problems fallback to version 2.1.1\nAlso version 3.0.0 is not backward compatible and will require some changes of those who used previous versions. These are not big tho. Updated readme explains it all.\n\n# License\n\n    Copyright 2015 Jacek Kwiecień.\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:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-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","EasyImage 是一个用于从相册或相机选取图片的库。其核心功能包括轻松地从设备的相册、相机或文档中获取图片和视频，而无需编写大量的样板代码。它支持多种选择方式，如直接调用相机拍照、从相册选择图片或通过系统选择器来决定来源。此外，EasyImage 还提供了保存图片到公共图库文件夹的功能，并允许用户自定义文件夹名称及是否允许多选。对于需要简化图像处理流程的Android应用开发者来说，EasyImage非常适合集成使用，特别是那些希望减少权限请求复杂度的应用场景。",2,"2026-06-11 03:13:14","top_language"]