cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I initialize Android Mobile Agent on specified activity

Ruli.Handrio
Builder

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 ?  

1 REPLY 1

Ruli.Handrio
Builder

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.