我想在我的應用程序使用Flurry Analitcs。 閱讀SDK文檔我沒有從我的應用程序的每個活動下面的代碼後:Flurry應該用在Services和AsyncTasks中?
@Override
protected void onStart() {
FlurryAgent.onStartSession(this, "xxxxxxxxxxxxxxxxx");
super.onStart();
}
@Override
public void onStop() {
super.onStop();
FlurryAgent.onEndSession(this);
}
我的疑問是,我有很多的AsyncTask,並在我的應用程序的一些IntentServices,並在文件中,他們說:
插入到FlurryAgent.onStartSession(上下文,字符串)的呼叫時,它傳遞一個參考 到上下文對象(例如,活動或服務)
所以,我應該調用調用onStart在onHandleIntent方法中的會話?我應該在哪裏打電話onEndSession?在最後的過程和最後的塊? 而關於AsyncTasks,我要實現它太,即使我通過我的活動範圍內,通過我的任務是什麼?