我正在一个只有一个Activity的简单Android应用程序上测试Flurry。我从Activity的onCreate方法调用FlurryAgent.onPageView();。这是计算页面浏览量的正确方法吗?此外,我找不到关于http://dev.flurry.com/的PageView报告,它在哪里?谢谢,贾科莫 最佳答案 首先,您需要调用FlurryAgent.onStartSession(Context,String)。可能在onStar()中。然后,您可以调用FlurryAgent.onPageView();。请记住on
在我的应用程序中,我添加了flurryanalytic,但即使在添加它几天之后。我在仪表板上看不到任何更新。谁能帮我解决这个问题。提前致谢,publicstaticvoidStartSession(Contextcontext){FlurryAgent.onStartSession(context,CommonKeys.APIKey_FLURRY);FlurryAgent.onEvent("AppStarted");}@OverrideprotectedvoidonStart(){//TODOAuto-generatedmethodstubsuper.onStart();FlurryA
我以前实现过flurry。它工作正常。今天使用新版本的sdk,flurry不会在logcat中记录任何内容。我的代码乱舞.javapublicclassFlurry{privatestaticfinalStringAPI_KEY="xxxxxxxxxxxxxxxxxxxxxx";privatestaticContextmContext;publicstaticvoidinit(Contextc){mContext=c;}publicstaticContextgetContext(){returnmContext;}publicstaticvoidonStartSession(){if(
当我在2.3.4设备上使用FlurryAgent时,出现以下异常:E/AndroidRuntime:FATALEXCEPTION:FlurryAgentandroid.view.ViewRoot$CalledFromWrongThreadException:Onlytheoriginalthreadthatcreatedaviewhierarchycantouchitsviews.在我的代码中,我确保与UI相关的所有内容都在UI线程上完成。我尝试通过FlurryAgent.setCaptureUncaughtExceptions(false)禁用Flurry的异常捕获,但这没有帮助。我
请大家告诉我怎么用FlurryAgent.onEvent(StringeventId,Mapparameters)在androidActivity中使用flurry跟踪事件? 最佳答案 onEvent最简单的用法是不带参数。假设我们正在编写一款游戏,您想要跟踪有多少人开始了游戏以及有多少人完成了游戏。然后你会:FlurryAgent.onEvent("Startedgame");和FlurryAgent.onEvent("Wongame");在代码中的适当位置。如果您想了解有关事件发生时应用程序状态的更多信息,您可以添加参数来跟踪附
FlurryAgent.logEvent和FlurryAgent.onEvent有什么区别?我找不到关于这些的任何文档。 最佳答案 onEvent已弃用,您应该使用logEvent取而代之。logEvent还引入了两个新的重写方法,让您可以跟踪定时事件(不适用于onEvent):logEvent(StringeventId,booleantimed)logEvent(StringeventId,Mapparameters,booleantimed)开始编辑要结束一个定时事件使用:endTimedEvent(StringeventId