Giter VIP home page Giter VIP logo

android-file-chooser's People

Contributors

floryn90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-file-chooser's Issues

Not showing camera option

Hey there,

Thanks for sharing this. I've been trying to get this working for ages and then came across your blog. Really pleased.

However when I click the "Add photos" button in my website through webview it takes me straight to the gallery and doesn't give me an option to use the camera, it does however if I access the website from the chrome browser.

Any ideas how I can fix this?

Thanks again

crash issiue during tap outside the dialogs

I tested the demo app and everithing is cool, I found just 2 issues:

  1. on android 7 when it prompt (camera or documents) it crash if I tap outside the dialog box
  2. on android 4.4.2 the app runs but file dialogs does not appears

Thanks Giorgio

Missing permission

hello
your solution is great ! but you don't include the verifyStoragePermissions
i added this function

public static void verifyStoragePermissions(Activity activity) {
    // Check if we have read or write permission
    int writePermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);
    int readPermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);

    if (writePermission != PackageManager.PERMISSION_GRANTED || readPermission != PackageManager.PERMISSION_GRANTED) {
        // We don't have permission so prompt the user
        ActivityCompat.requestPermissions(
                activity,
                PERMISSIONS_STORAGE,
                REQUEST_EXTERNAL_STORAGE
        );
    }
}

with this variables
// Storage Permissions variables
private static final int REQUEST_EXTERNAL_STORAGE = 1;
private static String[] PERMISSIONS_STORAGE = {
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE
};

and in on create
verifyStoragePermissions(this);

Camera file is empty

hello
if i take a picture
sometimes the filesize is 0 octet , sometimes not ....

Problem on Lollipop 5 and 5.1

Hello.
I have tested your webapp on Lollipop and the image isn't grabbed from the gallery. Instead on Marshmallow it works great.

Kitkat 4.4 Compatability

Hi;

I was looking for a solution to the problem with webview in kitkat 4.4 and thought this might work but it does not ?

Do you have any solutions that will work on kitkat 4.4 ?

camera not inside the list

hi, my name effendi from Belitung Island - Indonesia, i follow your code and its works, but camera not in the list - just direct open my photo gallery..

thank you

Other file types

Hi,
Thanks for your example - it works fine.
Can you help - how implement downloading all types of files?
Thank you!

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.