N Nachtfalke75 Member Licensed User Longtime User Oct 31, 2012 #1 Hi, i preload up to 40 bitmaps in my app like this one: Code: For i = 1 To 40 Step 1 w = 80%x h = 80%y If Activity.Height > 860 Then w = 420 h = 700 End If Animation(i).InitializeSample(File.DirAssets,"anim_"&pNr&"_"&i&".jpg", w, h) Next That works well on the most of the devices, but on the android 4 platform the app shuts down. i get a "Out of Memory" message in the debug monitor. The debug from b4a says nothing Anyone here, who can help me with that problem please?
Hi, i preload up to 40 bitmaps in my app like this one: Code: For i = 1 To 40 Step 1 w = 80%x h = 80%y If Activity.Height > 860 Then w = 420 h = 700 End If Animation(i).InitializeSample(File.DirAssets,"anim_"&pNr&"_"&i&".jpg", w, h) Next That works well on the most of the devices, but on the android 4 platform the app shuts down. i get a "Out of Memory" message in the debug monitor. The debug from b4a says nothing Anyone here, who can help me with that problem please?
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2012 #2 I guess that your Android 4 device resolution is much higher than the other devices you test with. You will need to reduce the width and height. The best solution is to resize the original images. Upvote 0
I guess that your Android 4 device resolution is much higher than the other devices you test with. You will need to reduce the width and height. The best solution is to resize the original images.
N Nachtfalke75 Member Licensed User Longtime User Nov 1, 2012 #3 Erel said: I guess that your Android 4 device resolution is much higher than the other devices you test with. You will need to reduce the width and height. The best solution is to resize the original images. Click to expand... The original images are 700x420 px. I tried 360x480 but it still do not work. If i try to load more then 10 images, the app stops. But if i load 40 !! images with 700x420 on a 2.2 device it works well. On the emulator and the real device too. :BangHead: Upvote 0
Erel said: I guess that your Android 4 device resolution is much higher than the other devices you test with. You will need to reduce the width and height. The best solution is to resize the original images. Click to expand... The original images are 700x420 px. I tried 360x480 but it still do not work. If i try to load more then 10 images, the app stops. But if i load 40 !! images with 700x420 on a 2.2 device it works well. On the emulator and the real device too. :BangHead:
N Nachtfalke75 Member Licensed User Longtime User May 26, 2013 #4 Can someone help me with my problem? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 26, 2013 #5 Have you tried it with v2.70? Upvote 0