views:

45

answers:

2

Hello,

In my app I'm making a basic HTML help document. I wanted my app's logo in the HTML img tag itself, but I don't know how I'd reference to the logo which will be stored in assets.

Is this possible, if so how?

Thanks for the help!

A: 

You can reference assets with this URL syntax:

file:///android_asset/YourAssetFilename
Robert Nekic
I just tried that but it didn't work :(
AlexPriceAP
I know it works because I use it in one of my apps. The syntax definitely works in code, such as: webView.loadUrl("file:///android_asset/blah.png")And this site indicates it should also work in HTML, see the section about "Creating HTML that references resources bundled in the APK file itself". http://developerlife.com/tutorials/?p=369
Robert Nekic