Setting a var to null is enough to free memory in my app?

sijarsijar MXMember ✭✭

I actually don't know how a reference is still maintained and when it's lost for the GC to free my memory, I move between activities and when I return to a past activity, the variables are keeping it's values (which I don't need anymore).
I am setting my global variables to null on the OnPause() method.

Is that enough? what else should I do for that variables stop using memory?



Sign In or Register to comment.