public static Bitmap getImg(String name, boolean bol) { String path = "/img/" + name; InputStream bitmapin = img.getClass().getResourceAsStream(path); Bitmap bitmap = null; if (bitmaps.get(name) != null) { bitmap = bitmaps.get(name).bitmap; } else { bitmap = BitmapFactory.decodeStream(bitmapin); bitmaps.put(name, new Fbitmap(bitmap, bol)); } return bitmap; }
public static Bitmap getImg(String name) { String path = "/cstio/ufdia/commons/res/" + name; InputStream bitmapin = img.getClass().getResourceAsStream(path); return BitmapFactory.decodeStream(bitmapin); }