Daniel Trebbien wrote:Since I have the app, I will also try to code up a test PhoneGap app to access one of the content provider images from HTML. It might take me a bit of time, though.
Interesting! I checked with Android 2.3 and the HTML
img tag
is able to pull an image from my custom content provider.
I set up a basic PhoneGap-based app and added an
img tag to the main HTML file, setting its image URI to the content URL of one of the images that are managed by my custom content provider. The correct image showed up on the screen, indicating that the HTML engine is able to retrieve files at content URLs.
What remains to be seen is whether the HTML engines of older API levels also support this and whether the Javascript engine can also access files at content URLs (e.g. with
XMLHttpRequest).