Then it's my internal class of a base adapter implementation. Note that this is an expandable list view, but I use the immediate process for all my list views
class GamesAdapter BaseExpandableListAdapter {Private context reference; Public Sports Adapter (reference reference) {this.context = context; }}
My question is, how can I settle this reference because after reading a reference, there is a reference to the activity, so when I go to the old charge, Please do not help me with memory leak
When the screen changes the orientation system (by default ) Will destroy the current activity and will create a new time for you to make your state Has been given the chance. Can you just reset the context? I'm not sure if you have to change yourself to handle your configuration
Personally, I just want to pass any time in getApplicationContext () because I need a reference because this activity Is not based on the lifecycle of it (its no activity reference). But you can also obtain references from one view in your getChildView () etc.
In addition, if your list has been rebuilt, then it can be rebuilt on config changes, you want? The way it gets refurbished? That's why I'm not seeing where the leak is yet to be.
Comments
Post a Comment