[英]When an intent is fired to start a new activity, does the previous activity still use the heap memory on the Dalvik VM?
I'm working on an application which has about 4 to 5 HorizontalScrollViews. 我正在开发一个具有大约4到5个HorizontalScrollViews的应用程序。 Out of these, 3 are completely loaded with images.
其中,有3个完全加载了图像。 To get this working I had to overcome java.lang.OutOfMemoryError, many times.
为了使此工作正常进行,我不得不多次克服java.lang.OutOfMemoryError。 Thanks to all the friends on stackoverflow.
感谢所有关于stackoverflow的朋友。 Now, my next activity is again going to be filled, completely, with images.
现在,我的下一个活动将再次完全用图像填充。 Therefore, I wanted to know whether heap is freed when a new activity begins?
因此,我想知道新活动开始时是否释放堆?
如果您要使用finish()杀死之前的活动,则它将不使用堆内存,否则将使我们的内存位于后台(堆栈)中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.