Android Question Open and close activities slowdown the application

Hccsoft

Member
Licensed User
Longtime User
Hi,

I have an application that works properly unless I recharge more than 10 activities (I don't have more than 2 screens at once and I unload the screen when I close). The application becomes slow and charge the images and icons pixelated. I think it's a memory problem but when I close the activities I close using an Activity.RemoveAllViews.

I also tested with:

For i = 0 To Activity.NumberOfViews-1 Step -1
Activity.RemoveViewAt (i)

Any idea what could be happening?

Thank you
 

Hccsoft

Member
Licensed User
Longtime User
The background images have 200kb to 500kb and 1300x800 (it's too much?). It's for 1080p Sony Xperia.
 

Attachments

  • comedor botones.jpg
    comedor botones.jpg
    365.2 KB · Views: 98
Upvote 0

KMatle

Expert
Licensed User
Longtime User
It's 1330x800x4=4 MB. Android has only a very small amout of memory for images (NOT 2 GB!). Load them with bitmapsample at a lower resolution or re-use the imageviews.

I still wonder why android can display superduper games with Open GL and 3d shaders but is not able to display some images.
 
Upvote 0
Top