GithubHelp home page GithubHelp logo

Comments (6)

haianhsing avatar haianhsing commented on June 8, 2024 1

@tanoDxyz Just request WRITE_EXTERNAL_STORAGE without adding requestLegacyExternalStorage into androidmanifest can not work at api 29.
In the end what I did was using uri in above 28 and file in other

from photoeditor.

burhanrashid52 avatar burhanrashid52 commented on June 8, 2024

@haianhsing Seems like the sample app does NOT have the READ WRITE storage permission.

from photoeditor.

haianhsing avatar haianhsing commented on June 8, 2024

@burhanrashid52 Fails despite having read and write permissions.
Finally, I download source code and use uri to save without read and write permissions.

from photoeditor.

tanoDxyz avatar tanoDxyz commented on June 8, 2024

@haianhsing
i wrote the sample app's file saving code
basically library (PhotoEditor) understands file paths and FileSaveHelper uses URI
and write at that path.

it is a good thing if we have file saving code inside library but let @burhanrashid52 decide that.

moreover on topic
if you have android 10.
please add video etc and also share your manifest. so i can have better idea that what is wrong going onπŸ™‚

from photoeditor.

haianhsing avatar haianhsing commented on June 8, 2024

@tanoDxyz Though request WRITE_EXTERNAL_STORAGE permission and set android:requestLegacyExternalStorage="true" can use file path to save image, I think use uri to save image is the better idea.

from photoeditor.

tanoDxyz avatar tanoDxyz commented on June 8, 2024

@haianhsing
please checkout the sample app in photoEditor.

it just declares WRITE_EXTERNAL_STAORAGE
upto api 28

and remove
requestLegacyExternalStorage
from your manifest
and your code will work fine.

remember requestLegacyExternalStorage does not work on higher api levels.
so please do not use it.

from photoeditor.

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.