Q:

Add icons to drawalbe

I have several 512 x 512 icons so they are high resolution icons.
I placed alle the icons under drawable-xxhdpi in my android project.
The name of the icons are all correct (they start with ic_) and 
they are all .png
Unfortunately im unable to use the icons. When i create an imagebutton:
ImageButton imageButton = new ImageButton(this);
imageButton.setImageResource(R.drawable.ic_settings)

The project is unable to find the icon ic_settings.
So how can i add icons to my project and use them?

A:

You need to create a new folder named "drawable" in your "res" folder and place all your icons there.
Keep the code exactly like you got it now and it will work properly.
Let me know if you need more help via comments.
Oh and to let you know why what you are doing is not working: those Drawable-hdpi, ldpi and so on refer to different screen sizes.You added your resource in xxhdpi which is the biggest screen possible.So unless you use a tablet or a virtual device that has the resolution of a tablet, it won't work.

