Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 602 Bytes

audiencemgmt.md

File metadata and controls

20 lines (14 loc) · 602 Bytes

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.