【发布时间】:2016-06-23 11:53:06
【问题描述】:
我一直在阅读有关垃圾收集器及其在 Android 中的影响的文章,我有一些问题想与大家分享。
- 垃圾收集器对 Android 的真正影响是什么?它在自己的线程中运行,所以应用程序应该没有任何问题,对吧?
-
如果上述问题的答案是肯定的,我们应该创建对象还是避免它? 示例:
findViewById(R.id.mytextview).setText("xpto");
或
TextView mytextView = findViewById(R.id.mytextview)
myTextView.setText("xpto");
【问题讨论】:
标签: android performance garbage-collection