Hello. I'm leaving a question because there was a problem while developing the app.
I'm trying to process a large amount of images on one screen.
The image is jpg, and about 70 files with a capacity of 2 to 30 kb are attached.
It has an average resolution of 300x500.
Set to orientation="vertical" statically in XML and arrange vertically
You want to scroll to show the images.
There is a memory overrun error because I am showing a lot of images.
I googled and found that the simple way to do it is to use android:largeHeap="true" in Menifest I'm asking you to add it, but I can't solve this method.
Also, it runs on some smartphones, but the app dies on other smartphones.
Below is the error code, and the limited memory in the back was about 5 megabytes when it was first turned on
After that, it was reduced to one megabyte in that's how it was.
java.lang.OutOfMemoryError:
Failed to allocate a 8103900 byte allocation with 1166400 free bytes and 1139KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
If you know anything about this or if you know a similar example, please reply.
Thank you for reading the long question. Have a good day!
android imageview
http://d2.naver.com/helloworld/429368 I think it would be helpful to read this article.
There is no glide you used, but there is a similar content about Picasso.
As a self-answer, we solved the problem by using the Glide library.
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.