All Apps and Add-ons

Splunk MINT: Is there a way to print any of my static variables in my Android app when the report is sent?

rafaelruiz
New Member

Hello.

I'm having a couple of bugs in my Android app regarding static variables. They seem to be released (like C++ or Obj-C !!) but it's not possible, but I really can't figure out other reason.

Is there anyway to print any of my static variables when the report is sent?

Thank you very much in advance.
Regards.
Rafael.

0 Karma

csaur_splunk
Splunk Employee
Splunk Employee

In terms of a static variable lifecycle: a static variable comes into existence when a class is loaded by the JVM and dies when the class is unloaded.
You might have to use some form of Reflection to output the values of static variables, like the Field class. And then you could log this using Mint.logEvent method within the SDK.

0 Karma
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...