Giter Site home page Giter Site logo

Comments (6)

StickyDigit avatar StickyDigit commented on August 11, 2024

from warpinator-android.

slowscript avatar slowscript commented on August 11, 2024

Hi,
I'm glad to hear you like my work! Warpinator is an amazing tool and I'm happy I can help by making an Android port :)

For now I'll go with solution 1 (c24208f). The only problem is that the required API is not available on Android versions older than Oreo.

I agree that it would be better to use some default directory first but in this case I'm limited by the storage API I decided to use. The traditional way of accessing files is no longer permitted in Android 11 and up so I went with the Storage Access Framework. It allows me to use a custom directory but I need the user to give me explicit permission to access it (via the system directory picker).

I could also use the Media Store API to save directly to Downloads without any permission but I would not be able to give the user the choice to select any other location. In the end it will probably be necessary to combine both approaches which is something I plan to do eventually.

from warpinator-android.

StickyDigit avatar StickyDigit commented on August 11, 2024

from warpinator-android.

slowscript avatar slowscript commented on August 11, 2024

Don't worry, it's just that one specific feature that requires Android 8. Versions above that will now open the directory picker in the root directory of primary storage, versions below keep the default behavior :)

from warpinator-android.

StickyDigit avatar StickyDigit commented on August 11, 2024

from warpinator-android.

slowscript avatar slowscript commented on August 11, 2024

The initial "Select download directory" prompt is now (since 1.4.3) avoided by having separate download logic for the default directory (Internal Storage/Download/Warpinator). Not the prettiest solution but the simplest I could think of that still works across all supported Android versions. Android <11 uses the WRITE_EXTERNAL_STORAGE permission, Android 11 & 12 seem to be able to store files in the Download directory without it. I have not found whether the 11&12 behavior is intentional so might have to redo this if it is just a bug that will be fixed.

from warpinator-android.

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.