我有简单的代码(从资产文件夹向imageView添加图片):
InputStream path = getAssets().open("z1_1.jpg");
Bitmap bit = BitmapFactory.decodeStream(path);
imageView.setImageBitmap(bit);
当此代码执行时抛出错误:
FATAL EXCEPTION: main
01-10 05:24:32.492: E/AndroidRuntime(2303): java.lang.OutOfMemoryError
任何sugestions问题在哪里?