Developer quick start
This information helps you understand the process to implement the BlackBerry library.
Get the SDK
The SDK requires BlackBerry 10 or later.
After unzipping the downloaded SDK, verify that the following files exist in an AdobeMobile
folder:
Device-Coverage/libADBMobileShared.so
Device-Debug/libADBMobileShared.so
Device-Profile/libADBMobileShared.so
Device-Release/libADBMobileShared.so
public/ADBMediaAnalytics.hpp
public/ADBMediaSharedHeader.hpp
public/ADBMediaState.hpp
public/ADBMobile.hpp
Simulator-Coverage/libADBMobileShared.so
Simulator-Debug/libADBMobileShared.so
Simulator-Profile/libADBMobileShared.so
Add the SDKs to your Project
-
Right-click on your project and select Configure > Add Library.
-
Select External library and click Next.
-
Click Browse next to the Device library field.
-
Navigate to the
ADBMobile-4.0.0BETA-BlackBerry
folder. -
In the
Device-Debug
folder, selectlibADBMobileShared.so
and click Open. -
Click Browse next to the Simulator library field.
-
Navigate to the
ADBMobile-4.0.0BETA-BlackBerry
folder. -
In the
Device-Debug
folder, selectlibADBMobileShared.so
and click Open. -
Click Add next to the Include folders field.
-
Navigate to the
ADBMobile-4.0.0BETA-BlackBerry
folder. -
Add the
public
folder to your includes. -
In the
ADBMobile-4.0.0BETA-BlackBerry
folder, there is a.json
config file namedADBMobileConfig.json
.Copy that file into the root of your project.
-
Right-click on your project and select Refresh.
The
.json
file should now be visible in your Project Explorer. -
Open the
bar-descriptor.xml
file for your project. -
At the bottom of the window select the Assets tab.
-
Confirm that (All Configurations) is selected, then click the Add Files in the Assets section of the window.
Tip: There is a bug in the QNX Momentics IDE that sometimes prevents those buttons from being visible. If you can't see the buttons, resize the windows until they appear.
-
Click Workspace.
-
Find the
ADBMobileConfig.json
file in your project and click OK.
Your application can import the classes/interfaces from the adobeMobileLibrary.jar
library by using #include <ADBMobile.hpp>
.
Add app permissions
In bar-descriptor.xml
in the project directory, add the line <permission>access_internet</permission>
, or in the QNX Momentics IDE, select the Internet box on the permissions section of the Application tab.
ADBMobileConfig.json
config file
Update the The ADBMobileConfig.json
file contains global SDK settings. You need to update a few values to get started.
The following is an example of an ADBMobileConfig.json
file:
{
"version" : "1.0",
"analytics" : {
"rsids" : "coolApp",
"server" : "my.CoolApp.com",
"charset" : "UTF-8",
"ssl" : true,
"offlineEnabled" : true,
"lifecycleTimeout" : 5,
"privacyDefault" : "optedin",
}
}
You must at least update the rsids
and server
parameters. For more details, see Adobe Mobile class and method reference.
You can now implement Analytics in your BlackBerry 10 app.