I use it in WebView for links to all included files (css, js, jpeg ....). The path is as follows:

content://com.example/images/qq.jpeg 

or

 content://com.example/script/ss.jj 

Is it possible to make the ContentProvider perceive a relative path: /images/qq.jpeg and /script/ss.jj, so that all links to all files can be set?

    1 answer 1

    The Uri decryption method is set by ContentResolver . ContentResolver from the context of your question, are you using the standard ContentResolver or your own samopisny? If your samopisny, then configure it to decrypt the relative path will be easy, but otherwise here we must already understand how the built-in works.