I developed blackberry app using phonegap.
With the help of command prompt,
I build the project with BlackBerry Code signing key,then it can successfully build
and gives the OTAInstall folder contains cod and jad file.
But my client wants to only one jad file to install their device.
Actually I tried to install the jad file without cod file, at that time the device shown error.
So, Everytime I install the app to my device, I used the OTAInstall folder containing the cod and jad file.
How can I convert this lot of files into one single file?
Only one jad file won't install the application. Anyway you need either jad file + cod file(s), or alx file + cod file(s).
jad file + cod stands for OTA install via browser
alx file + cod stands for desktop computer installation via BB Desktop Manager and usb-cable, attached to BB Device.
There's a workaround, it works only for desktop installation and it has a side effect.
Your application won't be listed under Applications list in device options.
You can use javaloader.exe utility that loads and erases cod files on attached BB device. This utility can be found in JDE (Java Development Environment) bin folder.
So, create bat-file that invokes javaloader and loads cod-files to connected device. And pack it along with your cod file(s) in SFX-archive, that runs that bat file when archive has been unpacked.
Related
I have a .cod file that I want to install to my blackberry. When I try javaloader
"javaloader -u load *.cod" I get the following error.
Connecting to device...debug: HRESULT error during Open: 80040154
Error: unable to open port
Additionally, I have tried hosting the .cod and .jad file on the nginx server and then accessing it from my device webbrowser.
Before I start the nginx webserver I put the following in the mime.type file in nginx.
application/vnd.rim.cod cod;
text/vnd.sun.j2me.app-descriptor jad;
However when I try to access the .jad file from my blackberry web browser it just opens up the .jad file in the browser and when I try to install the .cod file, it installs it on the device but when i click on it my blackberry says unable to install.
My blackberry model is q5.
Can anyone help me with installing the .cod file on my blackberry?
Thanks,
You can't. cod files work on BBOS, and are not supported by BB10. What you are attempting to do is a little like trying to install a Linux application on a Windows PC.
I've just made my first Blackberry webworks app using PhoneGap. I want to install the app on a device, without connecting to the PC. The build generated an OTA folder containing 22 .cod files and 1 .jad file. How do I install this onto a device?
Modify .htaccess file on your web-server, to recognize .jad and .cod files properly.
Add the following lines to your .htaccess file on your web-server.
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/vnd.rim.cod cod
Then upload your cod files and jad file to your server.
After that navigate jad file location from your device browser.
UPDATE:
Upon compilation in OTA folder there are generated many cod files (in most cases).
To install your application wirelessly, you need .jad file and all of .cod files, located in OTA folder. Place jad and all of cod files into one folder on your web-server. And open jad-file location from your BlackBerry device browser. After that device will read jad file contents and will be able to install cod files to the device memory.
I have deployed my .cod , .html, and .htaccess file on the web server for blackberry application distribution having size of 237kb but it does not allow to download.
What is the proper way to upload it?
Here is a nice Tutorial on how to do it :
http://assets.handango.com/marketing/developerTeam/BlackBerryOTADeployment.pdf
All you have to do is build the application with the eclipse plugin that you installed from RIM.
From eclipse you package the project
1.1 Right click on the project
1.2 BlackBerry
1.3 Package
Then go to the folder deliverables
2.1 Go to the folder with your version,mine is 5.0.0
2.2 Extract the application jar
2.3 Take the *.cod files(there should more than one if the app is bigger than 64k) and the .jad file and put it on your webserver
now you point your BlackBerry browser to the .jad file and install your new app
Don't forget to sign your application if needed.
Usually the problem because the jad file can't find the jar and cod files.
Are you sure you have pointed it to the absolute path of the jar.
instead of writing RIM-COD-URL : myApp.Jar you should write it : http://www.mydomain.com/myfolderlocation/myApp.jar
and so for the other file.
And don't forget to rename the COD to zip file and extract the zip file contents(which contain COD files) and upload these files. just remove the zip file after that
I made a simple application for blackberry the jar file doesn't get created ?
when the application is build following files get created in the main folder
.cod, .cso, .debug, .jad, .jdp, .rapc except the .jar file.
The .cod files contain the compiled program code for your blackberry application, and are equivalent to jar files.
You can use either the .jad file, or an .alx file (using blackberry desktop manager) to load these .cod files onto your blackberry.
I am trying to install the application developed by me on Blackberry device. I am using Blackberry Pearl 8100 and desktop manager 4.3.0.17 to load the application.
I am getting the error message as:
The application cannot be installed because some files are missing.
Make sure you're packaging your application as as ALX file - basically a zip file that includes your COD and an ALX (xml) descriptor file. Desktop Manager can't install apps just from a COD file (although if you have the JDE installed, you can use "javaloader" to load an app from a COD).
Try reinstalling device and desktop manager softwares.
I am not sure of this solution,but it might help.
Have you checked that you're cod file is in the same directory as the alx file when you install it?
When do you receive the error, on application startup or when you enter a specific screen?
Are you using any 3rd party software or libraries (e.g. ksoap)?