I have an activity with launch mode SingleTop. This activity has a viewpager in it. I recreate the pager adapter on every onNewIntent call. It works fine but when i debug it i see that FragmentManager has the old fragments too. And of course it consumes more memory. How can i get rid of these fragments?
Thanks in advance.