Bitmap bitmap = BitmapFactory.decodeResource(this.getResources(),R.raw.demo);
iv_show.setImageBitmap(bitmap);
bitmap = null;或者:InputStream is = this.getResources().openRawResource(R.raw.demo);
Bitmap image = BitmapFactory.decodeStream(is);
iv_show.setImageBitmap(image);
image = null;
AssetManager manager = this.getAssets();
try
{
InputStream in = manager.open("image/image.jpg");//注意路径
Bitmap bitmap = BitmapFactory.decodeStream(in);
iv_show.setImageBitmap(bitmap);
bitmap = null;
System.gc();
} catch (IOException e)
{
e.printStackTrace();
}原文:http://blog.csdn.net/chdjj/article/details/19154687