How do I load an image of jpg or png type in the R.drawable folder of android into a Bitmap object?
Bitmap bmp = (Bitmap) putThisImageIntoBitmap(R.drawable.myimage);
First you have to use the BitmapFactory class, then decode the resource file with the drawable's id and context's resources as parameters.
Sample:
putThisImageIntoBitmap(BitmapFactory.decodeResource(context.getResources(),R.drawable.myimage));