Flurry 分析未报告 Android 上的任何更新

发布于 2024-12-26 04:34:43 字数 659 浏览 2 评论 0原文

在我的应用程序中,我添加了快速分析,但即使添加了几天之后也是如此。我在仪表板上没有看到任何更新。任何人都可以帮助我解决这个问题吗?预先感谢,

public static void StartSession(Context context) {
    FlurryAgent.onStartSession(context, CommonKeys.APIKey_FLURRY);
    FlurryAgent.onEvent("App Started");
}

@Override
protected void onStart() {
    // TODO Auto-generated method stub
    super.onStart();
    FlurryAgent.onStartSession(this, CommonKeys.APIKey_FLURRY);

}

@Override
protected void onStop() {
    // TODO Auto-generated method stub
    super.onStop();
    FlurryAgent.onEndSession(this);
}

我在启动时调用以下行

BaseActivity.StartSession(getApplicationContext());

In my application i have added flurry analytic but even after days of adding it. i don't see any updates on the dashboard. could any one help me on this. thanks in advance,

public static void StartSession(Context context) {
    FlurryAgent.onStartSession(context, CommonKeys.APIKey_FLURRY);
    FlurryAgent.onEvent("App Started");
}

@Override
protected void onStart() {
    // TODO Auto-generated method stub
    super.onStart();
    FlurryAgent.onStartSession(this, CommonKeys.APIKey_FLURRY);

}

@Override
protected void onStop() {
    // TODO Auto-generated method stub
    super.onStop();
    FlurryAgent.onEndSession(this);
}

i am calling the below line on splash

BaseActivity.StartSession(getApplicationContext());

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫九 2025-01-02 04:34:43

我已经按照文档的建议完成了集成。我创建了一个 BaseActivity ,它将通过我的活动进行扩展。这段代码对我有用...

public class BaseActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onStart() {
        super.onStart();
        FlurryAgent.onStartSession(this, Constants.FLURRY_API_KEY);
    }

    @Override
    protected void onStop() {
        super.onStop();
        FlurryAgent.onEndSession(this);
    }
}

来自 Flurry 的日志可以在 LogCat 中找到,它们应该如下所示:

  4359            FlurryAgent  D  Initializing Flurry session
  4359            FlurryAgent  D  New session
  4359          TitleActivity  V  ::onResume::
  4359               Settings  W  Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
  4359            FlurryAgent  I  loading persistent data: /data/data/com.xxxxxx/files/.flurryagent.-6ee7b2a3
  4359            FlurryAgent  D  Loading API key: ****************KT9C
  4359            FlurryAgent  D  Loading session reports
  4359            FlurryAgent  D  Persistent file loaded
  4359            FlurryAgent  D  generating report
  4359            FlurryAgent  D  Sending report to: http://data.flurry.com/aap.do
  4359            FlurryAgent  D  Report successful
  4359            FlurryAgent  D  Processing report response
  4359            FlurryAgent  D  Done sending initial agent report

I have done the integration as recommended by the documentation. I have created a BaseActivity that will be extended by my activities. This code works for me...

public class BaseActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onStart() {
        super.onStart();
        FlurryAgent.onStartSession(this, Constants.FLURRY_API_KEY);
    }

    @Override
    protected void onStop() {
        super.onStop();
        FlurryAgent.onEndSession(this);
    }
}

Logs from Flurry can be found in your LogCat and they should look like this:

  4359            FlurryAgent  D  Initializing Flurry session
  4359            FlurryAgent  D  New session
  4359          TitleActivity  V  ::onResume::
  4359               Settings  W  Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
  4359            FlurryAgent  I  loading persistent data: /data/data/com.xxxxxx/files/.flurryagent.-6ee7b2a3
  4359            FlurryAgent  D  Loading API key: ****************KT9C
  4359            FlurryAgent  D  Loading session reports
  4359            FlurryAgent  D  Persistent file loaded
  4359            FlurryAgent  D  generating report
  4359            FlurryAgent  D  Sending report to: http://data.flurry.com/aap.do
  4359            FlurryAgent  D  Report successful
  4359            FlurryAgent  D  Processing report response
  4359            FlurryAgent  D  Done sending initial agent report
暗藏城府 2025-01-02 04:34:43

切勿将应用程序上下文传递给 FlurryAgent.onStartSession(),这一点非常重要。我记得,您应该只传递 Activity 或 Service 上下文。

It's very important you never pass an Application Context to FlurryAgent.onStartSession(). As I recall, you should only ever pass Activity or Service contexts.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文