Android: setting image using Html.ImageGetter

I'm having trouble using the place-holder Html.ImageGetter

to replace <img>

in the body text of an html email.

I'm using my own ImageGetter class UnivImageGetter

and calling Html.fromHtml(htmlBodyText, new UnivImageGetter(context), null)

to set the email text, but for some reason, the image still doesn't appear in the email element. It just shows an empty square in the OBJ

middle.

I can verify that the correct Drawable is being returned from my custom ImageGetter class UnivImageGetter.getDrawable()

, so this is not a problem.

I've been studying all day and no luck so far. Does anyone have any idea?

Thank!

+3


source to share





All Articles