Giter Site home page Giter Site logo

Comments (12)

siralam avatar siralam commented on July 28, 2024 3

Hey guys, simply by adding android:requestLegacyExternalStorage="true" to your <application> tag in AndroidManifest should fix the problem for now. Anyone tried?

from bsimagepicker.

siralam avatar siralam commented on July 28, 2024 2

Guess for now you would have to lower the target SDK version, but I will make it in the future version. Thanks for the report!

from bsimagepicker.

sjd753 avatar sjd753 commented on July 28, 2024 1

Having the same issue here. when are you going to fix it for Q api 29?
what else can be done to get around it?

Ran into this myself. You can get around this by feeding glide the Uri instead of the path

how to do this?

from bsimagepicker.

barnhill avatar barnhill commented on July 28, 2024

Ran into this myself. You can get around this by feeding glide the Uri instead of the path

from bsimagepicker.

barnhill avatar barnhill commented on July 28, 2024

It's one of the overloaded methods ... Can't remember off the top of my head. Make sure you use the latest glide too.

from bsimagepicker.

yesidlazaro avatar yesidlazaro commented on July 28, 2024

hi, any progress here?

from bsimagepicker.

engr-erum avatar engr-erum commented on July 28, 2024

Hi , Any progress for Android Q ?

from bsimagepicker.

siralam avatar siralam commented on July 28, 2024

Sorry guys I have been quite busy recently, but I will try to get this done this month. If not this month may be in Februaray then.

from bsimagepicker.

bemrePG avatar bemrePG commented on July 28, 2024

Ran into this myself. You can get around this by feeding glide the Uri instead of the path

Hi, just tried it with passing the uri. Still doesn't work. Any workaround for the mean time?

from bsimagepicker.

bemrePG avatar bemrePG commented on July 28, 2024

Hi, works great! Thank you very much.

from bsimagepicker.

siralam avatar siralam commented on July 28, 2024

Guys, yesterday I spent quite some time looking into this and I still cannot find a way to do it perfectly in all versions. I think there are still quite a lack of resources about this topic in the community, and even the Android documentation has not updated yet 🤷‍♂

So for now I decided to just leave it as the original way and just use android:requestLegacyExternalStorage="true".

from bsimagepicker.

Greger34 avatar Greger34 commented on July 28, 2024

Seems to work fine with glide.

    @Override
    public void loadImage(Uri imageUri, ImageView ivImage)
    {
        Glide.with(this).load(imageUri).into(ivImage);
    }

but you need to do some magic in public void onSingleImageSelected(Uri uri, String tag) to be able to do something with the image afterwards. Mainly copying the image to local cache using file descriptor. You can read more about it here:
https://medium.com/@sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df

After doing those things it works as intended for me without needing the android:requestLegacyExternalStorage="true"

from bsimagepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.