Git Product home page Git Product logo

Comments (4)

JakePou avatar JakePou commented on May 18, 2024

Ghazi, is there a simple fix for this? I tried copy & pasting that line of code (ActivityCompat.requestPermissions()) in various parts of the code with no luck.

from android-smartwebview.

mgks avatar mgks commented on May 18, 2024

Thank you for the contribution and suggesting for change in permissions Jake.

I've updated the codes and now you'll be able to handle permissions wherever you want with a new simple permission checker method introduced in the script.

Also, by default, permissions will be asked only when needed. ACCESS_FINE_LOCATION is onCreate as required, WRITE_EXTERNAL_STORAGE and CAMERA only when FileChooser method shoots.

Don't forget to tell me what you made of it.

from android-smartwebview.

JakePou avatar JakePou commented on May 18, 2024

First and foremost, thank you for your prompt reply!

I've updated the code and here is how it currently executes:
Step 1. I browse to the upload page inside the app
Step 2. Click Browse
Step 3. File Chooser pops up
Step 4. I select image
Step 5. Then it asks "app would like to access your files". (instead of at step 2)

I think this may be an issue with not the code, but the Android Emulator I'm using. I'm going to submit the app to Google Play and test on a real device. Will update you soon!

from android-smartwebview.

JakePou avatar JakePou commented on May 18, 2024

Works Great! Cheers.

from android-smartwebview.

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.