I declare a private variable in the fragment HomeFragment.java,
private List<WeatherCard> mWeatherCards = new ArrayList<>();
public class WeatherCard {
private String city;
private TextView mWeatherIcon;
private TextView mCityText;
private TextView mTemperatureText;
private TextView mRefreshTimeText;
private TextView mDescription;
private TextView mWindIcon;
private CardView mCardView;
}
When I press the back button on the android navigation bar, application is closed and activity had called the onDestory() method, but I found the variable mWeatherCards is not being recycled, and that being cleaned only when I use taskmanager to close the app. What is the difference close app between the taskmanager and back button and When the android resources are freed?