Targeting different versions of the operating system with the same code
Hello again,
I'm looking to use some features of the OS 5.0 such as the transitional API. Is there sort of having a base code that will compile in different versions of the JDE, but exclude the code blocks if the OS does not meet the requirements?
For example, transitions on a device to OS 5.0 but not appear on device OS 4.5.
Ideally, I'm looking for a solution that would integrate directly with Eclipse and debug without any extra steps in the two versions of the operating system.
Try to do research on the "preprocessor directives", you can use this to do what you need.
Basically, you wrap the code OS 5.0 in the guidelines such as:
#ifdef VER_5
System.out.println ("This compile for 5.0");
#else
System.out.println ("This compiles for no 5.0");
#endif
Then, enable you or disable directives in the compiler generate COD versions for each platform.
Jason
Tags: BlackBerry Developers
Similar Questions
-
I'm on a mac. I have 2 different versions of mac operating systems running on 2 different hard disks, because of needs of customers with software compatibility. If I update a cc adobe programs in a single operating system hard drive system, it will affect older versions of programs cc in the other system of operating system hard drive?
If, as you say, they are completely separate installations on separate hard disks, each with there own version of PS for example, there should be no way that they could interfere with each other! I assume you are using a form any of Boot Manager to load a specific version of Mac OS x?
I did something similar at the start in a similar situation with client compatibility and not had a problem with either interfere with others!
However, you share the programs somehow between different OS, so that would be another matter.
-
Please help me to orgnize different version of the same application
Hi all
It is so messy for me to create a different version of the same application to different platform, to touch, to not touch.
Can someone help me understand how to manage the same code base for all versions. In addition, we manage all the new functionality of the platform. These things also create headaches by signing the application. With JDE plug-in in eclipse, we are not able to understand, how we will do it.
Please help me.
Thank you.
Adarsh Pandey
Hi Alaka
You can make use of the Macro.
Suppose you want to have the same code base for touch and non-touch devices. You can define a macro saying IS_TOUCH. now in the code, you can put a brake, if this option is enabled, then include the key code that include no button code.
We had done the same for "BOLD" devices and the storm.
You can give it a try, in the same way, you can have separate devices also Macro.
Thank you
Ankit
-
Different version of the same form
I have 3 different versions of the same form that I need to turn it into editable PDF files. Each form has the same fields, placed in the same place, however the logo and the language is different on PDF files. I already have a modifiable form and it was VERY time consuming, there are a lot of fields and check boxes throughout the document.
Is it possible to copy and paste (drag / move) the editable fields from the form for the 2 other versions? Or do I have to create fields of each on individually? One took me several hours to complete, and I'm not anxious to do this 2 more times.
For any help or suggestion would be greatly appreciated!
All you have to do is to open the document that contains the fields, and then select "Document > replace Pages" for updating the content of the underlying page with pages to a new document that you created in the other language. The fields, links, etc will be kept.
-
Why does my 7th generation nano play different versions of the same song (acoustic, demo, replacing) one after another before she switches to a different song?
Maybe the current list of the song has the songs listed in alphabetical order, and you have the iPod nano to play in the order of the list... How do you think iPod nano to read the list of songs?
-
Use the UPD in different Versions on the same server
Hello
We're about to update some things on our print server (eg. name, queue) and want to upgrade the driver as well. A week to use two different versions of the UPD, at the same time on the same server.
Is it possible or will that get us in trouble?
I would recommend this ad in the Forums of HP Enterprise Support for better coverage, given that this may happen there anymore, it's here on the forums of consumers.
You can access support at the following link enterprise forums.
-
How to consolidate the two different versions of the same album on a Walkman?
I have two files "Worlds Torn Asunder" and "Worlds Torn Asunder [+ Digital Booklet] the first to 8 of the 10 songs while the latter contains the other two. When I open my list on the player, I have an option for each file and cannot read the album in its entirety in a single race because of this. I tried to copy and paste the two DB Edition to the standard edition, but the player just puts copies in the DB folder, even if they are in the standard folder on my computer.
(Sorry for posting in the wrong section, but I cannot click on the options available in the menu "show all".)
Hello Christopher,
Welcome to the community of Sony.
Try to copy the files on your computer and remove the Walkman player. After that, create a unique folder with all 10 songs on your computer. Connect the Walkman player to your computer and transfer the new folder with all 10 songs. Check if this workaround works.
If my post answered your question, please mark it as an "accepted Solution".
-
-
How to make a single binary a different version of the operating system
Hi BB Experts.
In my application, I used according to API according to the requirement of the application:
For version 4.5
1 CoverageInfo.COVERAGE_DIRECT API network supports
2 ContentHandler
3 resion API providerFor version 5.0
1 ConnectionFactory
2.BrowserField2Currently, I create binaries for different version of the OS 4.5, 4.7, 5.0 (4.2.1,). And my requirement is to create a single binary, which will work on all OS and should also support all the APIs I mentioned. How can this be achieved? Any pointer in this regard will be highly appreciated.
Thanks in advance
1 prepare and sign the 4 files of "internal" cod
2 create new project (to install app) and add these four files .cod as resources
3. when the installer app is started, check the version of the OS and CodeModuleManager methods to install the appropriate internal .cod file
-
What are the requirements of installing a trial version of lightroom operating system 4?
What are the requirements of installing a trial version of lightroom operating system 4?
http://www.Adobe.com/products/Photoshop-Lightroom/tech-specs.html
Mylenium
-
Register with different versions of the CSA to Cisco ACS primary
Hello, I updated a backup unit of two ACS to the 5.4.0.46.0a version first I changed it to standalone, and now I'm trying to save for the main CSA that is running the 5.1.0.44.2 version
And I get this error
This failure has occurred: com.cisco.nm.acs.im.certificate.Certificate; incompatible local class: stream classdesc serialVersionUID = 8507982043664257993, local class serialVersionUID = 1927357986028617243. Your changes have not been saved. Click OK to return to the list page.
What can I do to solve it?
Kind regards
The primary and the secondary must be run on the same code.
Jatin kone
-Does the rate of useful messages- -
Separate cod file, necessary tool for different versions of the signature BONE?
Hi all
I installed the blackberry JDE 1.3.0 eclipse plugin that contains the default value
package inside plugins, now using the url net.RIM.ejde.componentpack6.0.0_6.0.0.30
http://www.BlackBerry.com/go/eclipseupdate/3.6/Java download packages of components for 5.0 etc.. After that the signing tool will be installed with this eclipse.My question is if my application will be used for all versions of the OS, so what do I do?
1 should I I generate a single file of cod for 4.x or it should be necessary to generate a separate file of cod to 4.5.0, 4.6.0 4.7.0
2 If am will have to sign the cod of the file then I need to install the tool to separate signature for each operating system? or a unique signature tool installed in eclipse itself is enough to sign all the cod files that are generated in the different versions of the OS?
can any please help me understand these things
Thanks in advance,
Kitty
This signature tool is the same for all levels of the operating system. I usually use the tool last signature, even for the 4.2 signing apps.
Compiled cod are compatible forward but not backward. So, if you compile using OS 4.5 it can work in devices running OS 4.5 and above. However if you compile in OS 6.0, then it is not supported on devices running something more than that.
You will find that you might want to use the facilities available in newer versions on the new phones, so you will need to compile separately in this case. There are a variety of options to achieve this, but I would look first for the pre-processor.
There is a small problem in OS 4.7, so if I develop for OS 4.5 - OS 6.0 and the code will be the same for all devices, I usually provide two builds, one for pre OS 4.7 and the other to post that.
-
Oracle RAC 10 g, is it possible different version of the OS
Hi all
We have two-node Oracle RAC 10 g on Red hat 2 4. Now, the plan is to add a new node to the existing Oracle RAC. The new node is Redhat 5.4.
is it possible to add this node to the existing Oracle RAC.
The only difference is the version of the OS, existing installation is Redhat 4 and new node with Redhat 5.
Thank you and best regards,
Shir khanHello
Documentation Oracle says the following:
Oracle Clusterware and Oracle RAC do not support heterogeneous platforms in the same cluster. For example, you cannot have a node in the cluster that is running Oracle Linux and another node in the cluster, even under UNIX Solaris. All nodes must be running the same operating system; in other words, they must be compatible to the binary format. Oracle RAC does not support machines with chips different architectures in the same cluster. However, you can have machines of sizes and at different speeds in the same cluster.
And Metalink article
Comparison between the characteristics: RAC, Dataguard, streams, advanced a replication or base [ID 370850.1]
We can see some additional details:
Real Application Clusters (RAC)-
Same OS version on all nodes whose group of patches
Same version on all nodes whose group of patches Oracle versionGood luck!
--------------------------
http://DBA-star.blogspot.com/ -
I try to use the Microsoft Office tool that implement an MSI for 64-bit Office 2010 installation file. The tool works file and creates the msi file. I get to the tool by going to the x 64-bit folder on the office 2010 installation disc.
I install a new virtual machine from Windows 7 and tried to use the MSI file to install office 2010 and I get the error:
"The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded is may be missing or the upgrade patch may update a different version of the program"
If I just click Setup on the office 2010 dvd he moved very well on the same VM window7.
Does anyone have an idea how do to understand why the windows installer keep fails or what he wants?
If I click on the msi even on a system with office 2007 is installed, I get the same error.
Thanks for the help
jbabe
Windows Update has nothing to do with the upgrade or installation of Office 2010. Please post future questions in this forum: http://social.answers.microsoft.com/Forums/en-US/officeinstall/threads
~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
Hi I would like th different creative cloud buy 2, only photoshop/lightroom one and the other with all pack.is it is possible because I saw that we can only install on 2 different computers at the same time
Creative desktop cloud applications can be downloaded and installed on multiple computers, regardless of the operating system. However, the activation is limited to two machines per individual related to the composition, and you may not use the software on these devices simultaneously.
You can also see:
FAQ: Can I install Creative Cloud on several computers?
You can either sign of Creative cloud on a computer to connect to another, or as you said, buy a membership second using an AdobeID different so that you can leave, signed at on 4 computers.
Maybe you are looking for
-
My computer crashed and I had to restore it to its condition of purchase (2008). I had backed up all my data on Mozy. After the restoration of 12 GB of files, the 'Favorites' folder is in C:\Documents and Settings\myusername\favorites. The old shortc
-
my internet connection has changed somewhat from bresnan AVG, how and why? E-mail address is removed from the privacy *.
-
BlackBerry 10 How can I Downgrade Q10 7.1
I don't like firmware 10.x I want to downgrade my unit to 7.1 Can you please instruct how I can get it. Thank you very much
-
PSINET botnet and excessive bounce rate
All my connected LAN and WLAN clients have recently experienced a growing bounce rates causing slow internet access. Investigations using traceroute shows that same local DNS (Norway) research takes me to Cogent Communications in Washington DC (?). T
-
Window Live Photo Gallery Photo deletion
Can someone help me please? I deleted the duplicates of photos from Windows Live Photo Gallery. When I did this, Wndows also deleted the originals! Why? How can I get the originals back? What can I do in the future, when I want to delete duplicates s