Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: Preprocessor not working in 4.5

It isn't possoible to do what you would like because you are using calls that are only available in 4.7.


What you need to do is have two projects which are the same that look like this :


Project   1


Preprocessor set to : JDE_4_5


Library in build path uses :  [BlackBerry JRE 4.5.0]


Once this is working then copy the project to #2



Project   2


Preprocessor set to : JDE_4_7_AND_ABOVE


Library in build path uses :  [BlackBerry JRE 4.7.0]


When you upload to App World you will have a  Release with  two bundles:

1) Below47   :   All devices with minimum device OS 4.5   (use COD from Project 1)

2) AtLeast47 :  All devices with minimum device OS 4.7    (use COD from Project 2)


Hope this helps.

Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing