Please read the "Activity life cycle" thread (in the forum) and the related chapter in @klaus booklets.
The OS itself will terminate (definitively) your app when he needs to (ie running in the background for too long and need to free resources for foreground apps).