When Android use msf: after select a file

739 views Asked by At

I have an app to select a file from storage. My app crashed cause of old library not updated for years. I found the problem that when android returns a uri like "content://...." sometimes it have "msf:", example like: 'content://com.android.providers.downloads.documents/document/msf:24'.

In what condition android returns "msf:"?

1

There are 1 answers

0
blackapps On

When the user directly chooses a file from Download collection instead of first browsing to storage, then to Download directory and finally picking a file.

I do not see that collection anymore on modern systems.

But your app only crashes if you do nasty things like trying to get 'a real path from uri' and or not checking for a null path and not catching a NullPointerException.