gridview图片过大,连续几次打开关闭程序就会溢出内存
try {FileOutputStream out=new FileOutputStream(file);if(bitmap.compress(Bitmap.CompressFormat.PNG, 100, out)){out.flush();out.close();}} catch (FileNotFoundException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}