GithubHelp home page GithubHelp logo

Comments (7)

ARRR42 avatar ARRR42 commented on September 12, 2024 3

Temp solution: add to your manifest file

<application
...
android:requestLegacyExternalStorage="true"

from tedbottompicker.

SPoporo avatar SPoporo commented on September 12, 2024 1

@StephenMilone this problem is in your TedBottomPicker code, line:408 'Uri photoURI = FileProvider.getUriForFile(getContext(), getContext().getApplicationContext().getPackageName() + ".provider", imageFile); ' . this error is authority name didn't end with ".provider". adding provider meta data

from tedbottompicker.

nickilanjelo avatar nickilanjelo commented on September 12, 2024 1

This problem is still topical on Android API 29 (Android 10). Application can create files only in own directory. The problem is in this line:

File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);

I think that storageDir should be app directory.

As was first disclosed back in March 2019, you no longer have access by default to arbitrary locations on external storage or removable storage on Android 10+. This includes Environment.getExternalStorageDirectory() and other methods on Environment (e.g., getExternalStoragePublicDirectory().

https://stackoverflow.com/a/58379655

from tedbottompicker.

ParkSangGwon avatar ParkSangGwon commented on September 12, 2024

@StephenMilone Did you granted WRITE_EXTERNAL_STORAGE permission?

from tedbottompicker.

kanxoramesh avatar kanxoramesh commented on September 12, 2024

Hey how can i solve this issues ? any idea

from tedbottompicker.

nickilanjelo avatar nickilanjelo commented on September 12, 2024

I already do this, but in Android R this thing will be deprecated.

from tedbottompicker.

dds861 avatar dds861 commented on September 12, 2024

Now google asks to delete this android:requestLegacyExternalStorage="true", otherwise no updates will be allowed. So what we have to do?

from tedbottompicker.

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.