Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cameraOnly(), galleryOnly(), provider(ImageProvider) not working. #58

Open
anuragjksamanta92 opened this issue Jan 15, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@anuragjksamanta92
Copy link

  • Device: Samsung M series
  • OS: Android 10, 11
@anuragjksamanta92 anuragjksamanta92 changed the title cameraOnly(), galleryOnly(), provider(ImageProvider) no one working. cameraOnly(), galleryOnly(), provider(ImageProvider) no t working. Jan 15, 2022
@anuragjksamanta92 anuragjksamanta92 changed the title cameraOnly(), galleryOnly(), provider(ImageProvider) no t working. cameraOnly(), galleryOnly(), provider(ImageProvider) not working. Jan 15, 2022
@Drjacky Drjacky self-assigned this Jan 15, 2022
@Drjacky Drjacky added the question Further information is requested label Jan 15, 2022
@Drjacky
Copy link
Owner

Drjacky commented Jan 15, 2022

Try to run the sample app from this repository and see if it works or not.
Also, add your code snippet.

@hsinha76
Copy link

hsinha76 commented May 2, 2024

There's some issue when you try to open Camera or Gallery via separate functions. Below is the code.

    private void openCamera() {
        ImagePicker.Companion.with(MainActivity.this)
       .cropFreeStyle().maxResultSize(1080, 1080, true)

       .provider(ImageProvider.CAMERA) //Only works when set to BOTH

                .createIntentFromDialog((Function1) (new Function1() {
                    public Object invoke(Object var1) {
                        this.invoke((Intent) var1);
                        return Unit.INSTANCE;
                    }

                    public final void invoke(@NotNull Intent it) {
                        Intrinsics.checkNotNullParameter(it, "it");
                        launcher.launch(it);
                    }
                }));
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants