I cannot get Android to load .png images as bitmaps, I'm not sure if it possible to do this and I've been searching for an hour to no avail, regardless here's the code segment I have:
AssetManager assets;
Options options = new Options();
options.inPreferredConfig = Config.ARGB_8888;
InputStream in = assets.open(fileName);
Bitmap bitmap = BitmapFactory.decodeStream(in);
I've successfully used this code with .bmp files but I'm pretty sure you can load other file types other then .bmp as bitmaps. Any help would be appreciated.
An example for filename would be something like "background.png".