cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The AppDynamics Community is Migrating this Friday, February 28th.


At 6pm PST, the AppDynamics Community will go into read-only mode and after migration is complete, you will be redirected to community.splunk.com.
Read more here


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.