Ask Your Question
2

Why can't the content://media/external/file have Primary directory Audio and only [Download, Documents] directories are permitted? - IllegalArgumentException.

asked 2023-06-03 13:02:15 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-03 13:03:02 +0000

lakamha gravatar image

This is because the content://media/external/file URI is specifically designed to access files stored in the external storage directory of a device. The external storage directory contains several sub-directories including Download, Documents, and Audio. However, the Audio sub-directory is not a primary directory, and therefore cannot be accessed directly using the content://media/external/file URI. Instead, you would need to use a different URI or method to access files within the Audio directory. Attempting to access the Audio directory using the content://media/external/file URI would result in an IllegalArgumentException.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-03 13:02:15 +0000

Seen: 1 times

Last updated: Jun 03 '23