07-19-2011 03:35 PM
Our entire application was initially written to the JRE 5.0 API. During testing we discovered that we need to utilize the ApplicationFolderIntegrationConfig class so our ApplicationIndicator can be intergrated into the Messages and HomeScreen.
Is it possible to build the app using JRE 6.0 and deploy it to devices using OS 5 as long we we check the OS version before using the JRE 6 class ApplicationFolderIntegrationConfig? Something like this:
ApplicationMessageFolder inbox = reg.registerFolder( MessageListDemo.INBOX_FOLDER_ID, "Inbox", messages.getInboxMessages());
ApplicationFolderIntegrationConfig config = new ApplicationFolderIntegrationConfig(true, true, daemonDescr);inbox = reg.registerFolder( MessageListDemo.INBOX_FOLDER_ID, "Inbox", messages.getInboxMessages(), config);
If not, is there a way to conditionally compile 2 different binaries from the same project?
07-19-2011 04:00 PM
No you can't run appliation build for 6.0 to run on 5.0. BB apps are forward compatible which means application build against older versions will run on newer versions.
"If not, is there a way to conditionally compile 2 different binaries from the same project?"
Preprocssor Directive is what you need here.
07-19-2011 04:20 PM
Thanks for the quick response.
So if I go the Preprocessor Directive route, I can have one code base, include both JREs (5 & 6 in this case) and do a build for 5, then a build for 6?
07-19-2011 06:10 PM