views:

35

answers:

1

how do i load a local image from android assets from a generated (php) server-side html file?

eg. >

img src="file:///android_asset/calendar-date-icon.png">

-or-

background:#ffffff url(file:///android_asset/calendar-date-icon.png)no-repeat;

cannot get either to work

A: 

Try using relative paths. That might happen because the imgtag does not support using the file: protocol for file discovery. But i'm just guessing here.

Júlio Santos