| Migrating from previous versions / Migrate from v2 to v3 | |
Use the following instructions to migrate if you integrated manually.
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Remove the following line
this.localyticsSession = new LocalyticsAmpSession(this.getApplicationContext());
}
<application android:name=".MyApplication" android:icon="@drawable/ic_launcher" android:label="@string/app_name">
public class MyApplication extends Application
{
@Override
public void onCreate()
{
super.onCreate();
// Integrate Localytics
Localytics.integrate(this);
}
}