How to open only camera and gallery using com.theartofdev.edmodo.cropper library?

124
April 23, 2022, at 09:40 AM

I want set image validation like 72 ppi resolution and max size 100k so that I used com.theartofdev.edmodo.cropper library in kotlin

I have used the below method for open direct camera or gallery and cropped image feature so that I can get all the options but I want to show only gallery and camera options, in which it shows drive options so it allow to choose other files also instead of images extension files only in drive.

CropImage.activity()
            .setRequestedSize(100,100)
            .setMaxCropResultSize(1000,1000)
            .setGuidelines(CropImageView.Guidelines.ON)
            .setAspectRatio(100, 100)
            .setCropShape(CropImageView.CropShape.RECTANGLE) 
            .start(this)

How can I prevent to show drive option in popup ?

Thanks in advance

Rent Charter Buses Company
READ ALSO
Subprojects var type in dsl

Subprojects var type in dsl

I am transitioning my code to Kotlin DSL and as i have multimodule app i have some hack to transition gralde tasks like clean, build etc to other modulesSo i have following method in gradle:

64
Android Gradle Failed

Android Gradle Failed

I am trying to build a VPN application and when I try to build the application and run it on my phone, I keep getting these errors listed belowI tried upgrading the library dependencies, running it on offline mode,

175
GENEXUS Instalation Erro Android SDK "Android SDK for Genexus Setup error"

GENEXUS Instalation Erro Android SDK "Android SDK for Genexus Setup error"

I have error with Android SDK Installation for Genexus

94
calling parent fragment from DialogFragment called using navigation component

calling parent fragment from DialogFragment called using navigation component

My fragment calls a DialogFragment using navigation component like this

104