Alex Rivera | Logout

Android: R.drawable not showing my image?

Asked 2011-05-01T02:47:53.920
17

In my android 2.2 app, I've added my image to the res/drawable-mdpi folder. However, I cannot seem to access it using R.drawable.. As far as I know, there isn't any additional configuration I need to do - any help?

Edit
Report

1 Answer

2

I had the same problem for a different reason. In my case I had illegal characters in the image file name and hadn't noticed the console message complaining about it.

Once I'd renamed icon-1.png to icon_1.png all was well.

answered 2012-10-05T00:37:39.803

Your Answer