I need to implement library that acts like Google's Analytic Tools - count the number of button click events in a activity.
I need to add only one line of code to the Activity (after on create) like :
MyTestLibrarySDK.start(this);
The library need to monitor the number of click events and save that count to a file.
The function is called before setContextView
which mean there is no layout or view hierarchy yet.
I've tried to find a way to start a broadcast that notify when the activity is loaded but couldn't find one.