I have a number of fragments which are dynamically added using the following code:
private class DrawerItemClickListener implements ListView.OnItemClickListener
Timer task is not related with fragment life cycle. You can cancel timer when you finished your job with that fragment. Fragment's onStop method is good place to do that.
public void onStop() { super.onStop(); timer.cancel(); }