I have been reading about garbage collector and its impact in the Android and I got some questions, that I would like to share.
- What is the garbage collector's real impact in the Android ? It runs in own thread so the application shouldn't have any issue,right?
If the answer to question above was yes, should we create objects or avoid it? Example:
findViewById(R.id.mytextview).setText("xpto");
or
TextView mytextView = findViewById(R.id.mytextview)
myTextView.setText("xpto");