BookmarkSubscribeRSS Feed

Installing the SAS Customer Intelligence 360 Mobile SDK on an Android Application

Started ‎02-29-2024 by
Modified ‎02-29-2024 by
Views 218

In an earlier article I introduced the SAS Customer Intelligence 360 Mobile SDK. In that blog I talked about what the Mobile SDK is and talked about the necessary collaboration between a mobile app developer and a marketer. The purpose of this blog is to build upon my previous blog and provide step by step instructions on how the mobile app developer can install and initialize the mobile SDK in an Android application. Future blogs will discuss other topics such as how to set up mobile messages, how to configure events, and how to prepare the mobile application to show spots.

 

The first step in installing the Mobile SDK is obtaining it from SAS Customer Intelligence 360.

 

To download the mobile SDK, in SAS Customer Intelligence 360 navigate to CONFIGURATION and select General Settings. Next, under Content Delivery, select Mobile Applications, and click the select button:

 

jehurs_1__screenshot1.png

Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.

 

Next, select the app that you want to download the SDK for. And click the Download button:

 

jehurs_2_screenshot2.png

 

This downloads a ZIP package, which is nothing but the SDK bundle. This file needs to be added to the app, libs folder:

 

jehurs_screenshot3.png

 

Next, in Android Studio in the app’s build.gradle file, make sure to include an implementation file tree that includes the lib folder for the jar and ensure that there is gson file dependency in the application-level gradle file:

 

jehurs_screenshot4.png

 

If you are using the Maven repository to install the mobile SDK, add the following to the project’s top-level build.gradle file:

 

jehurs_screenshot5.png

 

Next, add the mobile SDK as a dependency in the app build.gradle file com.sas.mkt:mobile-sdk-android:version-number.  The version number can be found in SAS Customer Intelligence 360:

 

jehurs_screenshot6.png

 

Regardless of the method that you are using, the following steps need to be accomplished. The SASCollector.properties (part of the mobile SDK download) file needs to be added to the app, src, main, assets folder:

 

jehurs_screenshot7.png

 

In the apps AndroidManifest file, include the android permission internet and add the SAS Collector Intent Service Definition:

 

jehurs_screenshot8.png

 

jehurs_screenshot9.png

 

There are then three ways to initialize the mobile SDK. First, in the AndroidManifest.xml file, specify com.sas.mkt.mobile.sdk.MonitoredApplication as the name attribute of the application:

 

jehurs_screenshot10.png

 

 Second, if a custom application class is already defined, update it to extend com.sas.mkt.mobile.sdk.MonitoredApplication:

 

jehurs_screenshot11.png

 

Third, if you are already using a third-party application class, add a SASCollector.getInstance.Initialize call as well as a SASCollector.GetInstance.OnconfigurationChanged call:

 

jehurs_screenshot12.png

 

For additional information see SAS Help Center: Installing the Android Mobile SDK or Installing the Android Mobile SDK | Customer Intelligence 360 - Customer Intelligence - SAS Video Po....

 

 

 

 

Version history
Last update:
‎02-29-2024 01:31 PM
Updated by:
Contributors

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags