android - Easy Tracker issue -


i trying set context easytracker before using in on create method :

 context context= this;   easytracker.getinstance().setcontext(context); 

but getinstance needing context , when call setcontext, becomes red-underlined saying "the method setcontext(context, parameterloader, servicemanager) in type easytracker not applicable arguments (context)".

i want set context easytracker track button clicks.

there no need use setcontext here, follow google's tutorial:

@override   public void onstart() {     super.onstart();     ... // rest of onstart() code.     easytracker.getinstance(this).activitystart(this);  // add method.   }    @override   public void onstop() {     super.onstop();     ... // rest of onstop() code.     easytracker.getinstance(this).activitystop(this);  // add method.   } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -