0

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

3
  • maximum size of image it is per device. Read developer.android.com/topic/performance/graphics/load-bitmap Quick heads up: Image size does not matter. Only image resolution does. Commented Jun 26, 2018 at 12:34
  • Down voter should put the reason for Down voting in comment.So i could improve the mistake. Commented Jun 26, 2018 at 12:46
  • How can I improve this post? Commented Apr 25, 2019 at 19:31

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.