With the Help of this libray you can pic image from camera, gallery, it's support image cropping as well and you can pic PDF

Last update: Jul 25, 2022

FilePicker

This project aims to provide an ultimate and flexible image picking from Gallery, Camera and cropping experience as well as PDF picking from system.

For the Image Cropping UCrop library being used.

For the Permission Dexter library being used.

Usage

For a working implementation, please have a look at the Sample Project - sample

  1. Include the library as a local library project in setting.gradle.

    allprojects {
       repositories {
          jcenter()
          maven { url "https://jitpack.io" }
       }
    }
    

    i Add dependencies in app level build.gradle file

    dependencies {   
        implementation 'com.github.rajjadon:FilePicker:Tag'
    }
    
    
  2. Initialize Library in to Application class

    ImageAndFilePickerInjector.initInjectorInstance(this)
    
  3. Register Result Registry in onCreate/OnViewCreated of Activity/Fragment by calling below method

    imageAndFilePicker.registerResultRegistry(
             onResult = this,
             lifecycle = lifecycle,
             activityResultRegistry = activityResultRegistry
         )
    
  4. Call following method as per need

    i.   imageAndFilePicker.openCamera() // For capturing un-compressed image directly from Camera
    ii.  imageAndFilePicker.openCamera(compressPercentage: Int) // For capturing compressed image directly from Camera. pass compressed percentage between 0-100.
    ii.  imageAndFilePicker.openGallery() // For selecting image from Gallery
    iii. imageAndFilePicker.pickDOCFile() // For Pic DOC form file manager
    iv.  imageAndFilePicker.getDataFromActivityResult(
         resultECode: StartActivityForResultEnum,
         result: Intent,
         fragment: Fragment? = null,
         isCroppingEnable: Boolean = false,
     ) //  Use this function in OnResult it will return URI of selected image and PDF file. by passing true in isCroppingEnable argument you can enable the image Cropping as well
    
    v.  getFileName(fileUri: Uri) // For get the File name by passing the File Uri.
    v.  getCameraImageFile() // It will return un-compressed capture image
    

License

   MIT License

   Copyright (c) 2022 Raj Pratap Singh Jadon

   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   in the Software without restriction, including without limitation the rights
   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions:

   The above copyright notice and this permission notice shall be included in all
   copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE.
   

GitHub

https://github.com/rajjadon/FilePicker
You might also like...

Android library to choose image from gallery or camera with option to compress result image

Android library to choose image from gallery or camera with option to compress result image

ImagePicker Android library to choose image from gallery or camera with option to compress result image. Download Add this to your project's build.gra

May 20, 2022

A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.

A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.

Pdf Viewer For Android A Simple PDF Viewer library which only occupies around 125kb while most of the Pdf viewer occupies upto 16MB space. How to inte

Aug 11, 2022

Pdf Reader: Read text in PDF with Text to Speech

Pdf Reader: Read text in PDF with Text to Speech

PDF Reader PDF Reader Read text in PDF with Text to Speech APK Link Here | App D

Jan 21, 2022

Pdf Extractor - Covert array list of object to pdf table

Pdf Extractor - Covert array list of object to pdf table

Pdf Extractor - Covert array list of object to pdf table

Apr 3, 2022

A Flip Digit Libray

A Flip Digit Libray

Tab Digit A Flip Clock Libray.Have a look at the demo app available on google play this is what you can do with Tab digit Add it on your project: Grad

Jul 12, 2022

Camera Folder: "Take a Photo from Camera" everywhere where you can open a photo file

Camera Folder:

When "Camera Folder" is installed many Android-Apps that can open jpg files can also take a photo from camera.

Aug 2, 2022

Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.

Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.

ChiliPhotoPicker Made with ❤️ by Chili Labs. Library made without DataBinding, RxJava and image loading libraries, to give you opportunity to use it w

Aug 17, 2022

Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.

Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.

ChiliPhotoPicker Made with ❤️ by Chili Labs. Library made without DataBinding, RxJava and image loading libraries, to give you opportunity to use it w

Aug 17, 2022

NasaAPOD will show pic of the day from Nasa API

Nasa POD App - Built With Kotlin - Official programming language for Android dev

Dec 29, 2021

It's finally easy to take photos/videos via camera or get photos/videos from gallery on Android.

It's finally easy to take photos/videos via camera or get photos/videos from gallery on Android.

Shutter-Android It's finally easy to take photos/videos via camera or get photos/videos from gallery on Android. What is Shutter? Shutter is an Androi

Jun 12, 2022

It's finally easy to take photos/videos via camera or get photos/videos from gallery on Android.

It's finally easy to take photos/videos via camera or get photos/videos from gallery on Android.

Shutter-Android It's finally easy to take photos/videos via camera or get photos/videos from gallery on Android. What is Shutter? Shutter is an Androi

Jun 12, 2022

A lightweight library to help you navigate in compose with well typed functions.

TypedNavigation A lightweight library to help you navigate in compose with well typed functions. Installation: You can add this library to your projec

Apr 7, 2022

A TextView that automatically fit its font and line count based on its available size and content

A TextView that automatically fit its font and line count based on its available size and content

AutoFitTextView A TextView that automatically fit its font and line count based on its available size and content This code is heavily based on this S

Jul 26, 2022

Help users of coding platforms to create findable, well documented, secure and offering good quality projects

The Ambassador The Ambassador will help users of coding platforms to create findable, well documented and offering good quality projects. It measures

Jul 22, 2022

Slider-Gallery-Zoom: image slider for android supporting indicator and auto scroll with clicking on image

image slider supporting indicator and auto scroll with clicking on image to open full screen image slider swipe and pinch zoom gestures like gallery,just pass your images and the position of the current image.

May 28, 2022

Android widget for cropping and rotating an image.

Android widget for cropping and rotating an image.

Cropper The Cropper is an image cropping tool. It provides a way to set an image in XML and programmatically, and displays a resizable crop window on

Aug 3, 2022

Android widget for cropping and rotating an image.

Android widget for cropping and rotating an image.

Cropper The Cropper is an image cropping tool. It provides a way to set an image in XML and programmatically, and displays a resizable crop window on

Aug 3, 2022

Wrapper around the android Camera class that simplifies its usage

EasyCamera Wrapper around the android Camera class that simplifies its usage (read more about the process) Usage: // the surface where the preview wil

Aug 8, 2022

Wrapper around the android Camera class that simplifies its usage

EasyCamera Wrapper around the android Camera class that simplifies its usage (read more about the process) Usage: // the surface where the preview wil

Aug 8, 2022
AndroidFilePicker - android library which will help you to pick any type of media file in your application

AndroidFilePicker is android library which will help you to pick any type of media file in your application. No need to manage any kind of extra permission or result method override. Just create library class instance and use it or also modify ui as your requirement.

Jun 24, 2022
Block picker is Android app to help Minecraft player choose blocks for their build.
Block picker is Android app to help Minecraft player choose blocks for their build.

Block Picker Ever trying to make a build in Minecraft and you just can't find the perfect color palette? Block Picker will help jumpstart your creativ

May 8, 2022
Simple, Powerful and Beautiful Android Image/Video/Audio Picker 😎
Simple, Powerful and Beautiful Android Image/Video/Audio Picker 😎

Simple, Powerful and Beautiful Android Image/Video/Audio Picker ?? Features ?? No need check storage permission ?? Single and multiple selection Suppo

Jul 8, 2022
Image Picker for Android 🤖
Image Picker for Android 🤖

Android Image Picker No config yet highly configurable image picker for Android Screenshot Click to see how image picker looks… Download Add this to y

Aug 7, 2022
Media Picker is an Android Libary that lets you to select multiple images or video
Media Picker is an Android Libary that lets you to select multiple images or video

Media Picker Please let me know if your application go to production via this link Media Picker is an Android Libary that lets you to select multiple

May 25, 2022
Built the ccp code on compose. Country Code Picker is an android library which provides an easy way to search and select country or international phone code.
Built the ccp code on compose. Country Code Picker is an android library which provides an easy way to search and select country or international phone code.

Built the ccp code on compose. Country Code Picker is an android library which provides an easy way to search and select country or international phone code.

Jun 7, 2022
FilePicker - Android library to facilitate files picking up process and ability to convert them to request bodies

FilePicker - Android library to facilitate files picking up process and ability to convert them to request bodies

Jul 18, 2022
Image Cropping Library for Android, optimised for Camera / Gallery.
Image Cropping Library for Android, optimised for Camera / Gallery.

Image Cropping Library for Android, optimised for Camera / Gallery.

Aug 16, 2022
Sometimes, we need to show a label above an ImageView or any other views. Well, LabelView will be able to help you. It's easy to implement as well!
Sometimes, we need to show a label above an ImageView or any other views. Well, LabelView will be able to help you. It's easy to implement as well!

LabelView Sometimes, we need to show a label above an ImageView or any other views. Well, LabelXXView will be able to help you. It's easy to implement

Aug 17, 2022
Easy to use and configurable library to Pick an image from the Gallery or Capture image using Camera.
Easy to use and configurable library to Pick an image from the Gallery or Capture image using Camera.

Easy to use and configurable library to Pick an image from the Gallery or Capture image using Camera.

Aug 5, 2022