Flurry 不跟踪特定事件
我在 Android 应用程序中使用 Flurry 进行分析。在大多数情况下,除了尝试记录一个事件之外,它工作得很好。我有一个 ListView,当用户单击 ListView 中的某个项目时,我会记录该项目名称。我不知道这是否与在新活动启动之前尝试记录事件有关。如果我调试代码,日志记录事件和 onStart/onStop 都会被命中。
这是我的代码:
@Override
public void onStart()
{
super.onStart();
FlurryAgent.onStartSession(this, "flurryId");
}
@Override
public void onStop()
{
super.onStop();
FlurryAgent.onEndSession(this);
}
@Override
protected void onListItemClick(final ListView l, final View v, final int position, final long id)
{
super.onListItemClick(l, v, position, id);
FlurryAgent.logEvent("Item - viewed");
final Intent browser = new Intent(this, Browser.class);
this.startActivity(browser);
}
I'm using Flurry for analytics in my Android app. For the most part it works fine except for trying to record one event. I have a ListView and when a user clicks on an item in the ListView, I'm recording the item name. I don't know if it has something to do with trying to record the event right before a new Activity is launched or not. If I debug my code the logging event and onStart/onStop are both hit.
This is my code:
@Override
public void onStart()
{
super.onStart();
FlurryAgent.onStartSession(this, "flurryId");
}
@Override
public void onStop()
{
super.onStop();
FlurryAgent.onEndSession(this);
}
@Override
protected void onListItemClick(final ListView l, final View v, final int position, final long id)
{
super.onListItemClick(l, v, position, id);
FlurryAgent.logEvent("Item - viewed");
final Intent browser = new Intent(this, Browser.class);
this.startActivity(browser);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,Flurry 的活动人数上限为 300。如果超出该限制,则不会记录其他事件。当我进入“管理”->“事件”部分并阅读事件列表顶部的小文本时,我才发现这一点。
Please be aware that Flurry does have a limit of 300 for events. If you exceed that limit, then additional events are not recorded. I only found out about this when I went to the Manage->Events section, and read the small texts at the top of the event list.