I've been struggling with a problem related to images taken using the camera library with loading them into an imageview. I have attached example code.
What happens is that you can load 1 or 2 images into an imageview taken with the camera, but any more than that and the app forces close.
To reproduce the behavior with the example, tilt your phone so it re-orients to landscape mode. Then snap a picture. What this example does is loads the pic into an imageview to the side of the view finder panel. On my droid X2, it will only load 1 pic. On my milestone, it will load 2 images and then force close.
Note: this is not the original app that I am having the problems with, but a stripped down version of the advanced camera example where I reproduced the problem.
I thought it might be a memory problem with the size of the images being loaded into the imageview, so I attempted to use the JPEG library and load a thumbnail. However, that just returns a format error and won't load the image. Any help would be greatly appreciated.
Thanks,
Jack
What happens is that you can load 1 or 2 images into an imageview taken with the camera, but any more than that and the app forces close.
To reproduce the behavior with the example, tilt your phone so it re-orients to landscape mode. Then snap a picture. What this example does is loads the pic into an imageview to the side of the view finder panel. On my droid X2, it will only load 1 pic. On my milestone, it will load 2 images and then force close.
Note: this is not the original app that I am having the problems with, but a stripped down version of the advanced camera example where I reproduced the problem.
I thought it might be a memory problem with the size of the images being loaded into the imageview, so I attempted to use the JPEG library and load a thumbnail. However, that just returns a format error and won't load the image. Any help would be greatly appreciated.
Thanks,
Jack