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 Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...