Skip to content

Android. Pick image from camera or gallery using RxJava

Notifications You must be signed in to change notification settings

ZeDzislaw/RxImagePicker

 
 

Repository files navigation

RxImagePicker

An easy way to get image from Gallery or Camera with request runtime permission on Android M using RxJava

Setup

To use this library your minSdkVersion must be >= 14.

In your build.gradle :

dependencies {
    compile 'com.mlsdev.rximagepicker:library:1.0.2'
    compile 'io.reactivex:rxjava:1.0.14'
}

Example

RxImagePicker.with(context).requestImage(Sources.CAMERA).subscribe(new Action1<Uri>() {
                @Override
                public void call(Uri uri) {
                    //Get image by uri using one of image loading libraries. I use Glide in sample app.
                }
            });

Sample App

Authors

About MLSDev

MLSDev.com

Realm Android Example are maintained by MLSDev, Inc. We specialize in providing all-in-one solution in mobile and web development. Our team follows Lean principles and works according to agile methodologies to deliver the best results reducing the budget for development and its timeline.

Find out more here and don't hesitate to contact us!

About

Android. Pick image from camera or gallery using RxJava

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%