Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Audience Manager configuration

You can send signals and retrieve visitor segments from Audience Manager.

Set the application context

(Required) The setContext() method must be called once in the onCreate() method of your main activity.

Here is the code sample for this method:

@Override 
public void onCreate(Bundle savedInstanceState) { 
  super.onCreate(savedInstanceState); 
  setContentView(R.layout.main); 
  Config.setContext(this.getApplicationContext()); 
}

If you added this method call when you implemented Analytics or Target, you do not need to add it again.