Android : Eclipse not Recognizing the image

on Friday, January 30, 2015


I copied and pasted an image ic_menu_music.png into folder drawable.hdpi. Then i use it in some codes like :



setsound.setIcon(android.R.drawable.ic_menu_music);


but it got an error : ic_menu_music cannot be resolved or is not a field. I cleaned and built it again, but that not work. In this line setsound.setIcon(android.R.drawable. , i press Ctrl+Space , it suggest alots except ic_menu_music.


0 comments:

Post a Comment