hi,
How can I solve problem with Out Of Memory Error?
I think the problem is with high resolution and low RAM memory phones.
Principle of loading pictures is as follows:
For example let's initial Assets image size is 1080x1920 and i want it to be the size of the screen.
There are many images that I am loading at Activity_Create.
Code works on most devices. But I noticed an error on a phone with 1GB RAM and 720 x 1280 resolution.
With this way of loading images, it loads much bigger image than it needs to be.
(because initializeSample only devides it by 2 and 1080/2 is less number than 720 and)
What am I doing wrong?
How can I solve problem with Out Of Memory Error?
I think the problem is with high resolution and low RAM memory phones.
Principle of loading pictures is as follows:
For example let's initial Assets image size is 1080x1920 and i want it to be the size of the screen.
B4X:
P1.initializeSample(File.DirAssets,"p1.png", Activity.Width, Activity.Height)
Code works on most devices. But I noticed an error on a phone with 1GB RAM and 720 x 1280 resolution.
With this way of loading images, it loads much bigger image than it needs to be.
(because initializeSample only devides it by 2 and 1080/2 is less number than 720 and)
What am I doing wrong?