How to reference a photo in a local html file?

I’m opening a locally saved html file using the following line:

native.showWebPopup(0, 0, display.contentWidth, display.contentHeight, "helpHtml-"..settings.lang..".html", { baseUrl = system.ResourceDirectory, hasBackground=false, autoCancel=false} )

Then, in the file, I want to open the “logo.png” picture that resides in the “images” folder:

\<img src="images/logo.png" width="189" height="101" alt="Logo" /\>

It gets opened in the browser, but not on the device.

I assume something is probably wrong with referencing the correct “root” folder - can somebody please help me?

What you’re doing should work.  images/ will be relative to the locaton of the .html file.  However there have been issues with Android in the past not being able to access .png files that are in the app’s system.ResourceDirectory.  But I thought that bug had been fixed.  What version of Corona SDK are you using?

Rob

Rob,

thanks for the fast answer.

I’m developing on Win8.1, Corona version 2014.2511, mainly for Android.

Cheers, Pjanc

You might try running one of the later daily builds.

Rob

What you’re doing should work.  images/ will be relative to the locaton of the .html file.  However there have been issues with Android in the past not being able to access .png files that are in the app’s system.ResourceDirectory.  But I thought that bug had been fixed.  What version of Corona SDK are you using?

Rob

Rob,

thanks for the fast answer.

I’m developing on Win8.1, Corona version 2014.2511, mainly for Android.

Cheers, Pjanc

You might try running one of the later daily builds.

Rob