Hi AJ,
The example events do not show when and where to use the events but rather just how to build them. The placement and when they are called is entirely up to you!
When you call these events will depend on the structure and flow of your app.
- Is each screen a Fresh Activity?
- Are their any Fragments within the Activity / does other information get loaded dynamically?
- Is the application comprised solely of one Activity and many Fragments that are swapped in and out?
As to when to call it; the end of the OnCreate() / OnCreateView() functions are probably the best spot for this type of event. For the ID you would use whatever logically identifies this screen to you; this could well be the class name of the Activity or Fragment.
What exactly are you trying to figure out within your application?
Cheers,
Josh