On Sun, Aug 12, 2012 at 04:48:14PM -0700, Numair Qadir wrote: > So, i was working on a project that loads an image from the gallery and set > as background. It is working perfectly fine but crashes when i try to load > a large image, i.e. > 5 MP (2592??1944), 8mpx (3264x2448), 12 MP, 4000x3000 , here is my code:
If you want to load the larger images, you have two options: either first load ONLY the dimensions for the image (see BitmapFactory and BitmapFactory.Options, and from there, see inJustDecodeBounds), and then load/scale it at the same time. OR you can do this using the NDK (the list for that would be [email protected]). Frankly, I'd suggest loading the former of the two if all you want to do with the image is set it as wallpaper. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion > [email protected] ICBM/Hurr.: 30.44406N 86.59909W "The iPad is a status symbol for yuppies. The Android is for people who actually want something that works." Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

