balazsgerlei / SecureWebView

Android WebView wrapper with secure defaults to avoid security issues caused by misconfiguring WebViews.
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

💎Improve File Access demo by loading file from assets by default #15

Closed balazsgerlei closed 1 week ago

balazsgerlei commented 2 months ago

Currently the File Access demo in the sample app would not work by default as it tries to load a file from the file system of the phone. While this is more demonstrative, it requires the user to copy a file to a specific folder from the assets of the app and if it would instead try to load directly from the assets folder, the demo would work "out of the box", which is preferrable.

The info description could still describe how to load a file from the file system, still encouraging the user to copy the image from the assets folder.