How to destroy previous fragment?

2

In my Android project I navigate between fragments , in one of these fragments , there is a list that receives information from a json . There was a need to update this list every 1 minute, I'm using postDelayed(this, 60000); which calls a thread, which uses changeActivity(ActivitiesListFragment.class, null); to refresh the list.

It is working, the list is updated to a new fragment .

The problem is that when I hit the back button, it goes back to the previous list because it was not "destroyed".

How do I start a new fragment and delete the fragment previous?

    
asked by anonymous 02.11.2015 / 15:49

0 answers