Splunk MINT SDK for Android (Legacy)

Splunk MINT SDK for Android Developer Guide

Acrobat logo Download manual as PDF


Splunk MINT is no longer available for purchase as of January 29, 2021. Customers who have already been paying to ingest and process MINT data in Splunk Enterprise will continue to receive support until December 31, 2021, which is End of Life for all MINT products: App, Web Service (Management Console), SDK and Add-On.
This documentation does not apply to the most recent version of Splunk MINT SDK for Android (Legacy). For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

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);
	}
       ...
}
Last modified on 25 July, 2016
PREVIOUS
Add breadcrumbs to crash reports
  NEXT
Create timers

This documentation applies to the following versions of Splunk MINT SDK for Android (Legacy): 5.1.x


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters