Reputation: 594
Yesterday i was working with Image View in my app. I put an image. It was about 2.95 MB. And when i executed my application. My application crashed.
Then my friend suggested me that i should reduce the size of image.
I reduced the size of image (I used this website to compress that image)
I changed the image. I executed my application. And i was surprised.
My application was running.The error in Log was t Out Of Memory Error.
Is there a limit on image size in image view?
What is maximum size of image in imageView?
Before posting this question i visited these
And this website too
Upvotes: 0
Views: 103
Reputation: 148
I would suggest you use a library for displaying images since they make caching, displaying errors, resizing and much more super simple. Try these:
About your question, I think it depends on the device although I'm not sure.
Upvotes: 2