I have been trying to use Flurry Analytics with the official documentation but I am not getting it. As answered in the question here: How to use flurry in an application? I used
import com.flurry.android.FlurryAgent;
@Override
protected void onStart()
{
super.onStart();
FlurryAgent.onStartSession(this, "YOUR_API_KEY");
}
@Override
protected void onStop()
{
super.onStop();
FlurryAgent.onEndSession(this);
}
But the above code seems to be deprecated, the official documentation says to use
//If you are shipping an app, extend the Application class if you are not already doing so:
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// configure Flurry
FlurryAgent.setLogEnabled(false);
// init Flurry
FlurryAgent.init(this, MY_FLURRY_APIKEY);
}
}
What is meant by shipping an app? How to integrate new Flurry analytics? Help me.