I am getting \"nosuchmethod error\" on some user\'s phones (eg. Motorola Razr i) but it works fine on my HTC. Below is the code.
Drawable rBlack; rBlack = getRes
Try adding the following line of code:
context.getResources().getDrawable(R.drawable.your_image_name);