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!

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...