I wish to obtain the filename of the selected file from the content chooser.
For example, content chooser could return:
Directory = "ContentDir"
Filename = "content://com.android.externalstorage.documents/document/0000-0000%3AASLogo.jpg"
I know that the filename that I chose is "ASLogo.jpg".
And I see that there is a colon (%3A) right before the filename at the end of the string.
So, my questions are:
1) Is that last %3A guaranteed to ALWAYS be included in a content string and be the last delimiter before the filename?
2) And if not, what is a good way to get the filename returned from CC no matter what format it returns?
For example, content chooser could return:
B4X:
Wait For CC_Result (Success As Boolean, Dir As String, FileName As String)
Directory = "ContentDir"
Filename = "content://com.android.externalstorage.documents/document/0000-0000%3AASLogo.jpg"
I know that the filename that I chose is "ASLogo.jpg".
And I see that there is a colon (%3A) right before the filename at the end of the string.
So, my questions are:
1) Is that last %3A guaranteed to ALWAYS be included in a content string and be the last delimiter before the filename?
2) And if not, what is a good way to get the filename returned from CC no matter what format it returns?