Developing for different software versions

The Advertising Service SDK contains a separate .jar file specific to each BlackBerry Device Software version. To permit your application to run on multiple software versions, you must ensure that you use the correct .jar file with each version of your application. The Advertising Service SDK contains the following .jar file versions:

  • 6.0: Required for applications that run on BlackBerry 6.
  • 4.7-5.0: Required for applications that run on BlackBerry Device Software 4.7 to BlackBerry Device Software 5.0.
  • pre-4.7: Required for applications that run on a software version earlier than 4.7.

When developing your application, you should also consider how the behavior of the ads vary across the different software versions. The following table describes some of the differences in behavior specific to each software version:

Version

Component

Description

BlackBerry 6

Number of Banner objects per screen

This version supports one Banner object per screen in your application. Also, you cannot place a Banner object on a screen that has a browser field object.

Banner object sizing

This version does not require that you set a size for a Banner object. If you don't set a size, the Banner object sizes itself to match the size of the ad that the Advertising Service mediation server returns.

BlackBerry Device Software 5.0

Number of Banner objects per screen

This version supports up to two Banner objects per screen.

Banner object sizing

This version does not require that you set a size for a Banner object. If you don't set a size, the Banner object sizes itself to match the size of the ad that the Advertising Service mediation server returns.

BlackBerry Device Software 4.5 - 4.7.1

Number of Banner objects per screen

These versions support up to two Banner objects per screen.

Banner object sizing

These versions require that you set a size for a Banner object. If you set the size and specify MMA_SIZE_AUTO, the Banner object can size itself automatically.


Was this information helpful? Send us your comments.