android – How get a URI with this format content://xx.xxx.xxx.file_provider/file%253A%2…etc-ThrowExceptions

Exception or error:

How can I get an URI with this format?

content://xx.xxx.xxx.file_provider/file%253A%252F%252F%252Fstorage%252Femulated%252F0%252FDownload%252FSync%252FFileName%252F%252FEYV.pdf

I’ve seen several apps that open files with this URI through Intent so it can point to real file on device. So far I’m only getting the common format

content://xx.xxx.xxx.fileprovider/external/Download/Sync/FileName.pdf

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *