07-19-2010 11:14 PM
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 :
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
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.