I just have a normal app with a few activities, and I want Flurry to log information as well as crashes. When would be the best time to end the session? Should I do it in onPause, onStop, or onDestroy? In all of them or none?
According to the documentation, onPause and onStop are always called when exiting an app unless the app crashes or is destroyed by the user using a task killer. However, if I do put the end session in onDestroy, it will rarely be called.
Does anyone have any experience with this?
Extend the application class and put it in there: