03-08-2011 04:52 PM - last edited on 03-08-2011 04:59 PM
I am not sure if it will work with more than one app. What I mean is that you basically bundle the Analytics COD with your app. In that cod the Analytic classes are defined.
Now as we all know, if you have two applications that have a class with the same name and package name in their CODs, they won't run because each class can only be defined in one application's cod files.
This is why, when you sign up for the Advertising SDK, you will get a customized SDK, that has your unique appID in the package name of the classes that are in the code, hence making the package name unique. That's also why the Advertising documentation says you will need to get another SDK package if you intend to integrate with a second, third etc app of yours.
So can somebody please clarify how the Analytics SDK / libraries are going to work with more than one application? I don't want to end up having it integrated with my app and then when a user downloads it, it wont work becaue she / he may have another app that has it integrated as well.
03-09-2011 01:46 PM
The Analytics SDK is able to do things even cleaner than the Ad SDK, due to lower level implementation details.
If you follow the Analytics SDK setup instructions you are actually adding the classes into your application so they are built inside your modules. That means you won't have an Analytics cod file to install in addition to your own modules, which means you aren't going to have the problem of duplicate modules with the same classes inside.
Note that if the module name is different, then the classes inside can have the same fully qualified name.
To make sure I am not telling tales, I've taken a sample app that I was using with the Analytics SDK and copied it to a new project only changing the name of the project. I then built it and signed it and installed to the same device that had the original app installed. Both work fine.
03-09-2011 01:51 PM
Hello Tim,
Thank you for the clarification. That clears up a few mysteries :-)
Now I have follow up question: I am using bb-ant tools to build my apps for several OS versions in one go. The Eclipse Plugin isn't providing this and it's quite a bit of an effort to always do everything manually and swtich JRE versions to build for the next OS versione etc.
When I add the Analytics SDK jar there to the import for rapc.exe I get this
[rapc]
..\extLibs\5.0.0\AnalyticsServicev0.9Beta.jar(Webt
How can you 'overwrite' it so that the rapc picks it up? The Eclipse plugin must be doing it somehow because I can see in the Windows process monitor that it also just launches rapc.exe unter the hood.
Thank you.
Regards,
Daniel
03-09-2011 03:01 PM
What does your rapc command line look like?
03-09-2011 03:37 PM
The BB Ant Tools lunch it like this:
03-09-2011 04:47 PM
Looks like the problem is using the Java version of the rapc compiler. In there it checks for a certain bit flag in the COD that comes within the JAR.
When you run the rapc.exe command, however, that check doesn't seem to take place.
So I guess I will have to re-write the rapc ant task of the bb-ant tools a bit to make it work.. Hmmm
03-09-2011 06:03 PM
I just tried to run the same command but from within Ant and there I also get the 'non-parseable' warning.
Tim, wouldn't it be possible to get a Ad SDK that hasn't got this flag bit set??
03-10-2011 01:01 PM
Tim, is there anything that can be done about this problem?
03-17-2011 11:00 AM
03-18-2011 12:51 AM
Hai,
same sdk will work different applications. the only change is to change the parameters in the xml file.
I have used the same sdk in different applications by changing the parameters in xml file.