End User Monitoring (EUM)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I initialize Android Mobile Agent on specified activity

SOLVED
Ruli.Handrio
Builder

How do I initialize Android Mobile Agent on specified activity

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 ?  

How do I initialize Android Mobile Agent on specified activity
1 REPLY 1
Ruli.Handrio
Builder

Re: How do I initialize Android Mobile Agent on specified activity

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.