Page 1 of 1

Send to file://url - what does it mean?

Posted: 2021-01-20, 09:35 UTC
by 鸞鸞鸞

Re: Send to file://url - what does it mean?

Posted: 2021-01-21, 12:33 UTC
by ghisler(Author)
There are two ways to pass files to other apps:
1. As a reference to the local file system - this uses the file:// url, e.g. file:///storage/emulated/0/file.txt
2. As data provided by the sending app via a content provider. This uses the content:// URL, e.g. content://providername/path/file.txt

Some older apps only accept file URLs, some newer apps only content URLs, so I give the user the option to choose.