Hey all, I have a new issue I'm dealing with. So I have a huge image (2000 x 2000) that is way to big for the Android VM to load in (there's a 16 MB limit per application). That's fine with me, as I only want to load in one screen size (320 x 480) at a time, which Android should more than be able to handle. The problem is, how do you load in just one piece of a bitmap? I've tried the following:
Using java Syntax Highlighting
Bitmap bmp1 = BitmapFactory.decodeResource(res, R.drawable.);
Bitmap bmp2 = Bitmap.createBitmap(bmp1, 0, 0, 320, 480);
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
But of course the loading is really done in that first line, so the VM crashes.
Any ideas?