How can I indicate the minimum compiled version that I will allow my application to run on? Say OS 5.0 as minimum requirements.
I am using Java with the Eclipse tools.
As Remy says, the minimal supported OS version of your application is determined by the Blackberry SDK version you're using for development.
If you're planning to offer your application through Blackberry App World, the platform allows you to select the OS Version, carrier and even specific models that are allowed to download your product.
The minimum OS version is dictated by the version of the BlackBerry JRE that you compile with. If you have multiple JRE versions installed, you can select a particular version in the project's properties, in this case the 5.0 JRE.
Actually, the minimum OS version you can install your app is determined by the tag fileset in your .alx file. Example:
<fileset Java="1.54" _blackberryVersion="[4.5.0)">
The important info here is the Java attribute, the _blackberryVersion is only generated by newer plugin versions.
So you can compile a .cod file for let's say 5.0, and install it on 4.5 tweaking that element in the alx file. The alx is only used for BES and cable installs. You can also use JavaLoader and install the cod without caring about OS versions (no alx or jad file needed).
WARNING: The fact that you can install a "wrong" cod on a BlackBerry OS version it is not intended for doesn't mean you can run it without exceptions. If your app uses an API not present in your OS, it will crash.
Of course, the BB plugin generates the correct alx for the selected target OS, but you can bypass it by manually editing the alx if you wish. For OTA installs, the jad file doesn't contain any minimum version info AFAIK, but if it did, you could edit it as well.
Related
I'd like to debug my iOS app using an older version of the Mono framework so that I can see how things behaved with an older version of the Mono.Data.Sqlite assembly.
How can I tell Xamarin Studio to use an older version?
You can assign MD_MTOUCH_SDK_ROOT to point to an alternative install location. This should be the root directory that contains bin/mtouch.
You can set/export this as an env. variable to points to your alternative Xamarin.iOS framework and then launch Xamarin Studio (or VS4M) from the same shell.
Or you could assign it within your .csproj file.
Ref: Xamarin.MonoTouch.CSharp.targets
You can downgrade to an earlier version of Xamarin simply by running an older installer. Here's more information on where to find the installers and how to use them: How do I downgrade to an older version of Xamarin?
I am new in BlackBerry application development. I have installed "BlackBerry Plug-ins for Eclipse version 7.1" successfully. Now I am trying to import one existing project into Eclipse, it is showing the following error:
Build path entry is missing: org.eclipse.jdt.lau...de.BlackBerryVMInstallType/BlackBerry JRE 4.7.0
what is the reason for this?
If you have only installed the OS 7.1 plugin, then you won't be able to target OS 4.7.
You'll need to also install the SDK for OS 4.7. To do that, in Eclipse, go to the Help menu, then Install New Software..., then select the Work With: pull-down menu, and pick the BlackBerry Eclipse Plugin site.
Then, in the center of the window, you'll select the SDKs (OS Versions) you want to directly target:
As you see, I'm using the Mac Eclipse Plugin, and it doesn't even show OS 4.7 ... I can't remember if the Windows versions still supports 4.7 (I think it might offer a 4.5 plugin). Basically, all the 4.7 devices out there should be eligible for free upgrades to 5.0, so I don't know that it's worth it to support 4.7 anymore. Just support OS 5.0+.
Once you're sure that you have the correct SDK, then in the window you show in your screenshot, try removing that OS 4.7 library. Then, use the Add Library.. button, select JRE System Library and pick the BlackBerry JRE 5.0.0 (it may be in the Alternate JRE menu):
After you do that, try cleaning and rebuilding your project.
Anyone have this two versions of Xcode side by side on same machine?
I have Xcode 4.4.1 installed and I want to update to latest version (4.5) so I can use iOS 6 SDK, but I need to keep 4.4.1 for some clients.
Can I make a simple copy of this version and keep installed after upgrade? Because I know some people tried to make this and failed.
Complete a Time Machine backup.
Upgrade Xcode to 4.5.
Restore Xcode 4.4 from the Time Machine backup. (You may have to go back a few hours, depending on how long Xcode 4.5 took to download. Check the file size.) Keep Both.
Rename Xcode (Original) to Xcode 4.4.1.
Once you've done this, just run the appropriate version of Xcode. Xcode 4.5 will update some system components, but these updates won't prevent Xcode 4.4.1 from running.
If you use the command line tools, you should use xcode-select to switch between versions or the environment variable DEVELOPER_DIR to pin to a specific version.
Since Xcode is available on the App Store it's just a regular app. It doesn't install anything under /Developer that could be overridden if you install a new version. All the required files are inside the app bundle (except preferences, docs - those will be shared by multiple Xcode versions)
If you want to be sure, I recommend the following. Backup the old version (to an external hard disk), install the new version and restore the old version with a different name.
The reason some people failed is that when they downloaded Xcode 4.5 from the Mac App Store it overwrote their existing Xcode 4.4.1. The Mac App Store will do this if it sees an existing version of Xcode anywhere. There are two possible solutions:
Don't use the Mac App Store. It is always possible to obtain any version of Xcode as an ordinary download from the Apple Developer site.
Use the Mac App Store, but before you do, zip your existing copy of Xcode. That way, the zipped copy will be kept through the download process. Later, you can unzip it.
Note that two different versions of Xcode cannot exist in the same folder (e.g. top-level Applications) because they have the same name. The easily solution is to put one of them in a subfolder.
I have installed the eclipse for blackberry development from the blackberry eclipse download site https://developer.blackberry.com/java/download/eclipse successfully. The current version of the blackberry JDE is 7.1.
I tried adding the other versions 5.0 and 6.0 using the Help --> Install Software feature of eclipse by adding the download site from blackberry as https://developer.blackberry.com/java/download/eclipse. But unfortunately after selecting version 5.0 or 6.0 the download fails halfway with time-out.
So I tried downloading the said jar files separately. They are
net.rim.ejde.componentpack5.0.0_5.0.0.36.jar (250 MB file)
net.rim.ejde.componentpack6.0.0_6.0.0.43.jar (260 MB file)
Then I tried adding them but don't know the correct way of doing it.
tried putting it in plugin folder
tried putting in drop ins folder
I just was unable to figure out how to include this Jar file for compiling the blackberry code for the above versions of 5 and 6 along with the simulators.
Any ideas?
Update you Eclipse with the following URL
I have tried with this URL and this works for me, you will get 4.5,
5.0, 6.0 versions API's and Simulator.
Checkout the link, this will give you demonstration, that how to update Eclips
I am trying to install an application onto my device..I have compiled the application using JDK 4.5.0 and also signed it with RIM signing keys...But i am unable to install my application onto my device(8900) through desktop manager..It keeps on showing "application is not compatible with your device and cannot be loaded"... Since I have compiled my application in JDK 4.5, it must be compatible with all devices having OS > 4.5.0...What might be going wrong? Is there any version miss match?
Use javaloader.exe - it's much easier (it's in the bin directory of the JDE).