Skip to content

Latest commit

 

History

History
executable file
·
37 lines (24 loc) · 857 Bytes

readme.md

File metadata and controls

executable file
·
37 lines (24 loc) · 857 Bytes

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);