Popularity
1.5
Stable
Activity
1.7
-
22
6
4

Programming language: Kotlin
License: MIT License
Tags: Kotlin     UI Widget     Camera     Image Picker     Android-library    
Latest version: v1.0.1

Instagram ImagePicker alternatives and similar packages

Based on the "Camera" category.
Alternatively, view Instagram ImagePicker alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Instagram ImagePicker or a related project?

Add another 'Camera' Package

README

ImagePicker

A simple Instagram like library to select images from the gallery and camera.

Screenshot

Usage

For full example, please refer to the sample app.

Add this to your project's build.gradle

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

And add this to your module's build.gradle

dependencies {
    implementation 'com.github.akvelon.android-image-picker:imagepicker:x.y.z'
    // If you have a problem with Glide, please use the same Glide version or simply open an issue
    implementation 'com.github.bumptech.glide:glide:4.11.0โ€™
}

change x.y.z to version in the release page

Start image picker activity

The simplest way to start

ImagePicker.launch(this); // Activity or Fragment

If you already have selected images

ImagePicker.launchWithPreselectedImages(
this, // Activity or Fragment
 alreadySelectedImages // list of already selected files
);

Receive result

  @Override
    protected void onActivityResult(int requestCode, final int resultCode, Intent data) {
        if (ImagePicker.shouldResolve(requestCode, resultCode)) {
            // Get a list of picked images
            List<File> images = ImagePicker.getImages(data);
            // or get a single image only
            File image = ImagePicker.getSingleImageOrNull(data);
        }
        super.onActivityResult(requestCode, resultCode, data);
    }

AndroidX

As version 1.0.0 above, we already use AndroidX artifact in our library. If you have any trouble adding this version to your current project, please add this to your gradle.properties :

android.useAndroidX=true
android.enableJetifier=true

Or simply create an issue