错误一览表
1---- has leaked window android.widget.PopupWindow$PopupViewContainer@48580350 tha
原因:在没有关闭对话框的时候你把activity给finish,所以造成了这样的结果
Window Leaked大概就是说一个窗体泄漏了,也就是我们常说的内存泄漏
结果:把dialog.dismiss()掉就噢了~~
2----bitmap ---> file 2012-04-19
1 public File getFile(Bitmap bitmap) { 2 File file = null; 3 SharedPreferences sp; 4 if (bitmap != null) { 5 // 设置图片高中低 6 sp = getSharedPreferences("setting", 0); 7 int picStyle = sp.getInt( 8 getResources().getString(R.string.setting_imgqulity), 0); 9 int resize = 0; 10 if (picStyle == 1) { 11 resize = 300; 12 } else if (picStyle == 2) { 13 resize = 100; 14 } else { 15 resize = 800; 16 17 if (resize != 0 && bitmap != null) { 18 bitmap = PicUtils.ChangeSizeBitMap(bitmap, resize); 19 } 20 21 String filename = String.valueOf(System.currentTimeMillis()); 22 try { 23 FileCache.saveCopyBitmapToCache(this, bitmap, 24 "images/reimages", filename); 25 file = new File(Utils.getCacheFolder(this, 26 "images/reimages") + filename); 27 } catch (FileNotFoundException e) { 28 } 29 return file; 30 } 31 } 32 return file; 33 }
3 ----INSTALL_FAILED_INSUFFICIENT_STORAGE
原 因: apk大于我们的机器内存 解决办法: run configurations --- > android application ---> target --- > -partition-size 128
我要青春像陈孝正一样,不能有一毫米的误差!
我要青春像合伙人一样,为了自尊而战!