简体   繁体   English

如何将Bango SDK添加到我的android项目中?

[英]How do I add Bango SDK to my android project?

I am trying to incorporate Bango SDK with my project. 我正在尝试将Bango SDK集成到我的项目中。 Just wondering if anyone has done that or has an idea? 只是想知道是否有人这样做或有想法? The link is as follows: http://bangoandroidsdk.codeplex.com/releases/view/103062 链接如下: http : //bangoandroidsdk.codeplex.com/releases/view/103062

I was wondering how do I import their SDK (which consists of jarfile/bin and src) and doesn't show up everytime I try to do an import. 我想知道如何导入他们的SDK(由jarfile / bin和src组成),并且每次尝试导入时都不会显示。 Also, is there any way i can add it to my project and set some targets? 另外,有什么方法可以将其添加到项目中并设置一些目标? Can anyone lead me through this step by step (new to android) , so I can add it and get it to work? 谁能带领我逐步完成此步骤(是android的新手),以便我可以添加它并使它工作? (Also, can you please specify the relevant code changes required and where I can call the application ID) (另外,您能否指定所需的相关代码更改以及在哪里可以调用应用程序ID)

Thanks in advance! 提前致谢! Justin 贾斯汀

In the package, there .jar , you have to add them into Libs folder of your project and import them to your java class. 在包中,有.jar ,您必须将它们添加到项目的Libs文件夹中并将其import到Java类中。

You can also import the entire project as an project in your IDE and edit you project properties to link it as a library. 您还可以在IDE中将整个项目作为项目导入,并编辑项目属性以将其链接为库。

Refere to the page linked : 请参阅链接的页面:

RELEASE NOTES 发行说明

The zip file includes compiled JAR file, Source code including a Test App Harness, and documentation in PDF for version 1.4.2 of the Bango Android Application Analytics SDK. 该zip文件包括已编译的JAR文件,包括Test App Harness的源代码,以及Bango Android Application Analytics SDK 1.4.2版的PDF文档。

EDIT ANSWER QUESTION UNDER (get from PDF file linked on the page linked): 在下面的编辑答案中(从链接的页面上的PDF文件中获取):

public void onCreate(Bundle savedInstanceState)
{
   super.onCreate(savedInstanceState);
   // your code
   // Check if activity is being restored from a saved instance
   if (savedInstanceState == null)
   {
       BangoAgent.onStartSession(this, ApplicationId);
// your code }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM