Image Picker library for Android

Overview

Ronnie-Image-Picker

Asks for Camera and storage permission and return uri of the images taken or picked from the gallery.

Min Api Level: 16

Build System : Gradle

Getting started

You don't need to declare the permissions in the manifests.

Add this in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
       maven { url 'https://jitpack.io' }
    }
}

Add this to dependencies:

dependencies {
	     implementation 'com.github.ronnieotieno:Ronnie-Image-Picker:0.3.0' //Add latest version
	}

Example in code, Kotlin:

 //activity
  val imagePicker = ImagePicker(this)
  
  //fragment
   val imagePicker = ImagePicker(requireActivity())

    //Camera
            imagePicker.takeFromCamera(object : ImageResult {
                override fun onFailure(reason: String) {
                    Toast.makeText(this, reason, Toast.LENGTH_LONG).show()
                }

                override fun onSuccess(uri: Uri) {
                    imageView.setImageURI(uri)
                }
            })
     
     //Gallery
            imagePicker.pickFromStorage(object : ImageResult {
                override fun onFailure(reason: String) {
                    Toast.makeText(this, reason, Toast.LENGTH_LONG).show()
                }

                override fun onSuccess(uri: Uri) {
                    imageView.setImageURI(uri)
                }
            })
        

Example in code,Java:

 //activity
 ImagePicker imagePicker = new ImagePicker(this);
 
 //fragment
 ImagePicker imagePicker = new ImagePicker(requireActivity());
       
       //Gallery
       imagePicker.pickFromStorage(new ImageResult() {
           @Override
           public void onSuccess(@NotNull Uri uri) {
               imageView.setImageURI(uri);
           }

           @Override
           public void onFailure(@NotNull String s) {

           }
       });
       
       //Camera
       imagePicker.takeFromCamera(new ImageResult() {
           @Override
           public void onSuccess(@NotNull Uri uri) {
               imageView.setImageURI(uri);
           }

           @Override
           public void onFailure(@NotNull String s) {

           }
       });
You might also like...
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

📸 Use Android camera to take pictures and videos, based on `camera2` api.
📸 Use Android camera to take pictures and videos, based on `camera2` api.

Camera Use Android camera to take pictures and videos, based on camera2 api. Features Auto filled CameraView for previewing Support both image capture

Android camera and serial communication utility that interacts with another device via a USB connection.

PVIT-Payload-Source Android camera and serial communication utility that interacts with another device via a USB connection. PVIT = Palos Verdes Insti

NguyenThienAn06105 - This repository consist of the code to read camera data on ESP8266 and a simple Android application to visualize the …

MLX90640-HeatCamera This repository consist of the code to read camera data on ESP8266 and a simple Android application to visualize the result. There

 Bootcamp - Digital Innovation One e NTT Data - Aula de Recursos Nativos do Android
Bootcamp - Digital Innovation One e NTT Data - Aula de Recursos Nativos do Android

Recursos-Nativos-Android -Foto e Camera Bootcamp - Digital Innovation One e NTT Data - Aula de Recursos Nativos do Android Tutorial de uso da bibliote

Facebook-Styled-Image-Picker - Facebook Styled Image Picker

Facebook-Styled-Image-Picker Facebook Styled Gallery Files picker. One or multip

Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image selection.

Awesome Image Picker Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image sel

Image Picker with Customizable UI for Android, Pick an image from Gallery
Image Picker with Customizable UI for Android, Pick an image from Gallery

Image Picker A Image Picker Library for Android (Supports Android 12) with fully

Android Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.
Android Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.

1. Add dependency dependencies { implementation 'com.hbb20:android-country-picker:X.Y.Z' } For latest version, 2. Decide your use-case

Picker-kt - Media picker library powered by Jetpack Compose
Picker-kt - Media picker library powered by Jetpack Compose

ANDROID LIBRARY PickerKT A media picker library for Android apps powered by Jetp

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻

BigImageViewer Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling

Image Picker library for Android

Ronnie-Image-Picker Asks for Camera and storage permission and return uri of the images taken or picked from the gallery. Min Api Level: 16 Build Syst

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

Instagram like Image Picker for Android
Instagram like Image Picker for Android

ImagePicker A simple Instagram like library to select images from the gallery and camera. Screenshot Usage For full example, please refer to the sampl

Image Picker for Android 🤖
Image Picker for Android 🤖

Image Picker for Android 🤖

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

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

An Android Image compress library, reduce's the size of the image by 90% without losing any of its pixels.
An Android Image compress library, reduce's the size of the image by 90% without losing any of its pixels.

Image Compressor An Android image compress library, image compressor, is small and effective. With very little or no image quality degradation, a comp

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.

Comments
  • Added title labels to the camera and storage icon to easily make it e…

    Added title labels to the camera and storage icon to easily make it e…

    1.This is an enhancement of the dialog picker, where I added titles to the respective camera icon and storage icon. I saw this will even make it easier for the user to know from which source they are picking the image from.This was done in the;

    chooser_dialog.xml
    
    1. I also reduced the icon size of the camera and storage icon and changed the alignment to better fit the titles together with the icons.
    opened by Breens-Mbaka 5
  • Add custom chooser for pick from gallery or camera option

    Add custom chooser for pick from gallery or camera option

    Could we have the option that merges the ability to pick from gallery and camera in one dialogue. Additionally allow customization of theme and option to choose from gallery only or camera only.

    opened by numdouglas 3
Releases(1.1.0)
Owner
Ronnie Otieno
Android - Kotlin/Java. Learning more. Also Google certified AAD.
Ronnie Otieno
Instagram like Image Picker for Android

ImagePicker A simple Instagram like library to select images from the gallery and camera. Screenshot Usage For full example, please refer to the sampl

Akvelon 21 Sep 28, 2022
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

Mayank Nagwanshi 73 May 20, 2022
Android application to preview, record (MediaRecorder), and fetch each image from both front and rear cameras simultaneously

DuoCamera ?? Overview Android application to preview, record (MediaRecorder) and fetch each image from both front and rear cameras simultaneously. The

Igor Lashkov 5 Nov 28, 2022
An Android App that uses Machine Learning to recognize the objects in an image captured from the phone's camera

Camera App ?? Description An Android App that uses Machine Learning (ML) to recognize the objects in an image captured from the phone's camera. • Allo

Shikeya Anderson 1 Dec 31, 2022
Snappy - an android camerax library for taking snapshot fast & simple

Snappy is an android camerax library for taking snapshot fast & simple. Easy to integrate, 100% Kotlin & jetpack compose driven.

Nils Druyen 16 Dec 15, 2022
A library to take picture easy, transform your data in different format and save photos in your device

A Magic library to take photos and select pictures in Android. In a simple way and if you need it also save the pictures in device, and facial recogni

Fabian Rosales (Frosquivel Developer) 331 Nov 20, 2022
📸 A library that allows you to capture images secretly, in background without alerting users.

HiddenCamera A library that allows you to capture images secretly, in background without alerting users. Gradle Dependency Add the dependency to your

Cotta & Cush Limited 116 Dec 29, 2022
A new camera app for GrapheneOS based on the modern CameraX library.

This is the new GrapheneOS Camera app based on Android's modern CameraX library. It's currently in the alpha phase and isn't yet included in GrapheneO

GrapheneOS 513 Jan 1, 2023
Powerful custom Android Camera with granular control over the video quality and filesize, restricting recordings to landscape only.

LandscapeVideoCamera Highly flexible Android Camera which offers granular control over the video quality and filesize, while restricting recordings to

Jeroen Mols 1.2k Nov 22, 2022