Splunk AppDynamics

How do I initialize Android Mobile Agent on specified activity

Ruli_Handrio1
Explorer

Hi,

So, normally we can instrument and initialize android agent on mobile application at onCreate() method activity, I wondering if we can initialize the agent on specified method or activity ?  

Labels (1)
0 Karma
1 Solution

Ruli_Handrio1
Explorer

I try to initialize agent on other method and it works, but its not recommended because it may be disrupt registering various  event regarding activities lifecycle or other network request. if any issue occurs when initialize in other method, try to fix it by initializing the agent in on start (MainActivity onCreate method or Application Class.

View solution in original post

0 Karma

Ruli_Handrio1
Explorer

I try to initialize agent on other method and it works, but its not recommended because it may be disrupt registering various  event regarding activities lifecycle or other network request. if any issue occurs when initialize in other method, try to fix it by initializing the agent in on start (MainActivity onCreate method or Application Class.

0 Karma
Get Updates on the Splunk Community!

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...