Have several imageviews with bitmaps on an activity and I am setting the bitmap to null to conserve memory when leaving the activity. I have a "next"
coded as follows:
the code runs fine, but what happens is a slight (undesirable) pause as the imageviews go blank before activity_2 loads. I tried putting Activity.finish before the bitmap=null lines and the same behavior occurs. Also tried moving those lines to activity_pause -- same thing occurs. How can I get the usual "instantaneous" transition to the next activity and unload those bitmaps in the background, rather than have the user see a blank screen, even though it is a short time.
coded as follows:
B4X:
sub btn_next_Click
startactivity("activity_2")
imageview1.bitmap=null
imageview2.bitmap=null
activity.finish
the code runs fine, but what happens is a slight (undesirable) pause as the imageviews go blank before activity_2 loads. I tried putting Activity.finish before the bitmap=null lines and the same behavior occurs. Also tried moving those lines to activity_pause -- same thing occurs. How can I get the usual "instantaneous" transition to the next activity and unload those bitmaps in the background, rather than have the user see a blank screen, even though it is a short time.