Coder Social home page Coder Social logo

Comments (10)

Marc-Ferrer-Castillo avatar Marc-Ferrer-Castillo commented on July 30, 2024

This works for me:

ArrayList<MediaFile> files= data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES);
 files.get(0).getPath();

from filepicker.

carotkut94 avatar carotkut94 commented on July 30, 2024

but then getPath is deprecated in favour of gerUri thus, and on sdk 29+, getPath return null

from filepicker.

Marc-Ferrer-Castillo avatar Marc-Ferrer-Castillo commented on July 30, 2024

I am using sdk 29 and it works, have you tried:
android:requestLegacyExternalStorage="true"

from filepicker.

NSR88 avatar NSR88 commented on July 30, 2024

I have tried that too, but its unluckily not working in Android 10, returning null for getPath().
Till Android 9 (that is, Pie), its working fine.

from filepicker.

tcs-developer avatar tcs-developer commented on July 30, 2024

i am also facing same issue. even i used your suggestion but no use.

from filepicker.

MahmoudMabrok avatar MahmoudMabrok commented on July 30, 2024

so we should return back to geturi

from filepicker.

MahmoudMabrok avatar MahmoudMabrok commented on July 30, 2024

i have two device with android 10
one of them i can pick a file with path {xiaomi with android one }
second one, get null {Samsung A6
}

from filepicker.

DkKhan786 avatar DkKhan786 commented on July 30, 2024

Same issue did you get any solution..?

from filepicker.

DharmeshMTechnolab avatar DharmeshMTechnolab commented on July 30, 2024

I have same issue in Android 10 device if you have any solution please give me

from filepicker.

arzakmiftakhul avatar arzakmiftakhul commented on July 30, 2024

I can get file using Uri on android 10 by following this answer

from filepicker.

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.