Resources res = context.getResources(); Bitmap bmp= BitmapFactory.decodeResource(res, R.mipmap.flower);