Skip to content

mehulTank/ImageSelection

Repository files navigation

Step 1 : Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
compile 'com.github.mehulTank:ImageSelection:V.3.0'
}


imageSelection = new ImageSelection(MainActivity.this);

// open camera boolean isComprase = true;
imageSelection.openCamera(isComprase);

// open gallary
boolean isComprase = true;
imageSelection.openGallery(isComprase);

After that you need to implement ImageResult Interface.

then after you get uri of the image in that method.

On Activity Result Call Image Processing method

imageSelection.imageProcessing(requestCode, resultCode, data);