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.
Acrobat logo Download topic as PDF

Report user-specific data

Report data

With Splunk MINT, you can closely track the experience of any given user, for example to investigate a complaint. First, provide a user identifier such as an ID number from a database, an email address, a push ID, or a username. (However, please do not transmit any personally-identifiable or sensitive data into Splunk MINT.) Then in the Splunk MINT Management Console dashboard, you can search for errors that affect a particular user ID and examine crash data associated with her or her usage of your app. This feature is useful for apps with a high average revenue per user (ARPU), for apps that are deployed in a mobile device management (MDM) environment, and during quality-assurance testing.

  • Use the setUserIdentifier(userIdentifier) method to set a user identifier as follows:
  • Mint.setUserIdentifier("12345");
    Mint.setUserIdentifier("someone@domain.com");
    

Then, to search errors for a specific user name or ID, go to the Errors dashboard in Splunk MINT Management Console, then enter the user name or ID under Search by username in the list of filters.

Example code

public MyActivity extends Activity {
    private void onSuccessfullLogin() {
        String userIdentifier = getUserID();
        Mint.setUserIdentifier(userIdentifier);
    }
}

Do not report data

To prevent MINT from saving or sending any data for a user, use the Mint.setUserOptOut() method set to true before calling initAndStartSession.

public class MyActivity extends Activity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState); 
        Mint.setUserOptOut(true);
        Mint.initAndStartSession("apikey"); 
    }
}

For more about the data fields that are collected by MINT, see About Splunk MINT data collection in the Splunk MINT Overview manual.

Last modified on 28 January, 2019
PREVIOUS
Create timers
  NEXT
Use the crash callback

This documentation applies to the following versions of Splunk MINT SDK for Android (Legacy): 5.2.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