I have a number of fragments which are dynamically added using the following code:
private class DrawerItemClickListener implements ListView.OnItemClickListener
I would kill any timers or Async work in onStop()
http://developer.android.com/guide/components/fragments.html#Lifecycle
Quoting the API doc:
Stopped
The fragment is not visible. Either the host activity has been stopped or the fragment has been removed from the activity but added to the back stack. A stopped fragment is still alive (all state and member information is retained by the system). However, it is no longer visible to the user and will be killed if the activity is killed.
Fragment lifecycle:
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();
}