Android Question Getting file name and other info from content chooser uri – example

Nokia

Active Member
Licensed User
Longtime User
Here’s an example of getting file property information from the uri provided by content chooser. Shows File name, Mime Type, date modified and file size.

updated app to show columns, gallery content and you can now share to the app to view file info. I moved the example to this location.
 

Attachments

  • Screenshot_20200414-230717.jpg
    Screenshot_20200414-230717.jpg
    127.8 KB · Views: 494
  • Uri.zip
    10 KB · Views: 426
Last edited:

drgottjr

Expert
Licensed User
Longtime User
are we betting what erel will say when he sees this?

not everything is a file
 
Last edited:
Upvote 0

JohnC

Expert
Licensed User
Longtime User
are we betting what erel will say when he sees this?

not everything is a file
I was thinking the same exact thing!
 
Upvote 0
Top