android library for imagepicker
Library Size | 186 KB APK Size | 3.1 MB
Step 1. Add the JitPack repository to your build file
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 {
implementation 'com.github.qkopy:imagepicker:v0.0.7'
}
ImagePicker.with(this)
.start()
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == Config.RC_PICK_IMAGES && resultCode == Activity.RESULT_OK && data != null) {
images = data.getParcelableArrayListExtra(Config.EXTRA_IMAGES)
//adapter!!.setData(images)
}
}