Track activity
To track the views a user accesses, including the user's preceding view (relative to an error) and the time it took to render a view, extend the Activity class in your app's code. MintActivity automatically logs the user's activity name on the OnResume method, then automatically sends a gnip if the elapsed time on-view exceeds the session time you defined. (A gnip is a notification that indicates that a session has closed. A ping indicates that a session has begun.)
1. Before extending the class, initialize the MINT SDK.
2. Extend the MintActivity class, for example:
public class TestAct extends MintActivity {...} public class MyActivity extends MintActivity {...}
If your activity extends AppCompActivity or an activity class other than Activity, implement the onResume and OnStop methods and call MintActivityHandler as follows:
public class AllStateActivity extends AppCompatActivity { @Override public void onResume() { super.onResume(); MintActivityHandler.onResume(this); } @Override public void onStop() { super.onStop(); MintActivityHandler.onStop(this); } ... }
Add breadcrumbs to crash reports | Create timers |
This documentation applies to the following versions of Splunk MINT™ SDK for Android (EOL): 5.1.x
Feedback submitted, thanks!