如何使用疾风骤雨中的应用程序? [英] How to use flurry in an application?
问题描述
我想用乱舞和它的功能在我的应用程序。我如何注册自己与小雪和我如何使用它在我的Android应用程序?
I would like to use flurry and its features in my application. How can i register myself with flurry and how can i use it in my android application?
感谢
推荐答案
这其实很简单。
1 - 前往flurry.com并注册您的应用程序,这将产生一个独特的跟踪code
1 - Head to flurry.com and register for your app, which will generate a unique tracking code.
2 - 下载和FlurryAgent jar添加到您的项目库。如果你使用的是Eclipse,右键单击您的项目文件夹,选择属性,选择Java Build Path,然后选择添加外部JAR ...
2 - Download and add the FlurryAgent jar to your project libraries. If you're using Eclipse, right-click your project folder, select properties, select Java Build Path, and choose Add External JARs...
3 - 添加 android.permission.INTERNET对
您的AndroidManifest.xml
3 - Add android.permission.INTERNET
to your AndroidManifest.xml.
4 - 添加一个调用乱舞剂从ONSTART()和你的活动的onStop方法
4 - Add a call to the Flurry agent from the onStart() and onStop methods of your activities.
请注意:与您的独特的跟踪code替换下面的ID
Note: replace the ID below with your unique tracking code.
public void onStart()
{
super.onStart();
FlurryAgent.onStartSession(this, "9GKQD4EBX123FEP6874H");
// your code
}
public void onStop()
{
super.onStop();
FlurryAgent.onEndSession(this);
// your code
}
这就是它!
这篇关于如何使用疾风骤雨中的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!