Does calling GC explicitly have an effect on system memory?
I am using a number of data structures like Arraylist and HashMap in my activity. There is a need of refilling updated data from web service each time a user loads the activity. It implies that when the user leaves the activity and come back again these data structures should come in the memory.
When a user leaves the activity and does not come to it again I don't want these data structure to occupy any memory.
So can that be performed by calling GC in onPause() of the activity? Is it a good practice to do so? What are the options if I want to do such things?
 
     
     
    