I have a WebView that I use to open some files stored in the assets/ directory of my project. It works great for most files, but there, in particular (and I'm sure the others I haven't found), it just won't open.
I am having problems with the name:
"assets/ContentRoot/Photos/XXX Software Logo - jpg - 75%.JPG"
When I WebView it to WebView and it shows the error page, it shows it as:
"file:///android_asset/ContentRoot/Photos/XXX%20Software%20Logo%20-%20jpg%20-%2075%.JPG"
Then I tried running URLEncoder.encode() on it and got a page with a URL presented as:
"file:///android_asset/ContentRoot/Photos/XXX+Software+Logo+-+jpg+-+75%.JPG"
None of these URLs were able to open the file (and they both look good to me). Does anyone have any ideas?
UPDATE: If I coded % manually (using the %25 as proposed commonsware.com), it loads the image, but he is trying to analyze it as text, not as an image, so I just get a lot of (mostly) waste.

Also, accessing an image in an HTML document with a relative URL does not work (perhaps because it is not parsed as an image?):
<img src="../Photos/XXX%20Software%20Logo%20-%20jpg%20-%2075%.JPG" /> <img src="../Photos/XXX%20Software%20Logo%20-%20jpg%20-%2075%25.JPG" />
source share