user1452834
user1452834

Reputation: 21

Adding images to android project - eclipse

i am trying to add an image in my android app. I am using html. I have my photos in the res/drawable folder. I use the code img src= but i just get a question mark over the image. What am i doing wrong?

Upvotes: 0

Views: 583

Answers (1)

Raghav Sood
Raghav Sood

Reputation: 82583

Try using:

<img src="file:///android_res/drawable/image.png" />

You do not need to put the qualifier for the drawable in the SRC attribute.

Upvotes: 1

Related Questions