Installation of the cod files from a local file
Is it possible to install a cod from a local source file? I would like to install a cod/jad file or located on/SDCard/alx.
Earl
Read your cod file into memory as a byte array, then:
byte[] cod = getCodHoweverYouWant(); int newHandle = CodeModuleManager.createNewModule(cod.length, cod, cod.length); if (newHandle == 0) { // Do something informative here return; } int code = CodeModuleManager.saveNewModule(newHandle, true);
'Code' to determine if the module has been registered properly (compare to one of the CodeModuleManager.CMM_* constants).
Tags: BlackBerry Developers
Similar Questions
-
How to create the .cod file to run on the Simulator BB9900
Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html
It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.
I don't know how to create the .cod file.
Thank you
Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone
-
Hi as you can see from the title, I can't find the file .cod from the application of load on the real device.
I use eclipse IDE version 3.5. All I can find in the folder of the workspace is .alx file in the following directory:
C:\Users\***\workspace\HelloWorld\deliverables\Standard\
I look at all the folder within the workspace directory and found nothing but the .class and .java files.
How to create the .cod file?
Construction of as much as I KNOW is simply compiling your project...
But packaging and even debug your project the deployable project on the device...
Now the project is deployable with the help of:
. COD
.alx files
.jad
.jar
files... If these files are generated on the packaging or debug the project...
One last thing, I would say, check your antivirus settings, maybe it is intended to prevent the creation of these executable files.
-
JAD params of the reading of the JAD file that is changed after the cod file is built?
Hello
We have a requirement in which, you must change the jad file, after the cod file is generated.
But when I try to do is not able to read the newly added params to
MIDlet.getAppProperty()
. He can read the jad attributes that were there in the jad file before creating the cod file.Example:
existing JAD has "KeyA" whose value is "A." Now package for the project and generate the blah.cod file
Add a parameter more "KeyNew" with the value "ValueNew.
Print the source
MIDlet.getAppProperty("KeyA")
andMIDlet.getAppProperty("KeyNew")
Step 1. Existing.jad
KeyA: A.
Step 2. Build the cod
Step 3. Add another parameter to Existing.jad
KeyA: A.
KeyNew: ValueNew
Step 4. Existing.jad of charge using javaloader.
load Javaloader u Existing.jad
Step 5. Run the application
Actual output: it prints only a. and not ValueNew
I read that this is possible in JDE 4.3 + and I'm working on JDE 5.0
Help, please.
~ Joey
Apparently it only works if we install the Jad with Javaloader file. Having an installation OTA of the Jad file works.
-
Why the .cod files change download to download?
I do some tests on my BlackBerry (Bold 9700) of security and when I use JavaLoader.exe to download the .cod files I noticed that some of them will be different from download to download.
For example if I do the following:
> JavaLoader.exe save Sudoku_v46_480x360
> cp Sudoku_v46_480x360.cod Sudoku_v46_480x360.cod.1
> JavaLoader.exe save Sudoku_v46_480x360
> diff Sudoku_v46_480x360.cod Sudoku_v46_480x360.cod.1
The files will be different. I compared the in a hex editor and the differences are small (single-byte) and coherent (0x07 in 0x77) in 10 places in the file. They seem to be divided as wel.
-What is JavaLoader.exe done or there at - it something on the device itself that constantly updates the application?
Thanks for any idea!
Never mind, just found out why this is happening. Some of the .cod files (if there is more than 64 k I think) will decompose in a zip format and zip headers may be slightly different (last modified time may change) then the global .cod file will be binary different.
-
How to decompile the *.cod file
Hello!
It might look like you a stupid question or kind of odd or even exceptional.
But the lack of time available to us, I hope that one of you might be able to point me in the right direction.
However, ist the problem/question I face in fact:
We have a few files *.cod which one of our developers has written and compiled in cod-files.
Now, it is not available for all of us and we need to modufy these files - it you just change the hardcoded IP addresses.
We do not find the binaries, because none of us have access to its local workstation.
Is there a way to decompile the *.cod file and so, HOW do I doi it?
Cod files are for the 8110 and the BB Storm!
I hope you mind or will not be bothered to help me!
Best regards and many thanks in advance
ciphercore
Unfortunately you're practically no chance, the only 'real' decompilers for * .cod are flaky and when they work they spit of bytecode, not Java just so to change an address IP will be more than one test then you might think depending on the size of the application.
In other words, you want to either try hard to find the person or his computer because otherwise a complete rewrite may be a better idea.
-
Problems with the .cod files
Hello
I'm selling my app in MobiHand but I'm having a problem downloading my app to download. I am trying to download my .jad and .cod files but I get this error message:
"Some of the COD files mentioned in the JAD file, are not uploaded"
If I look in my .jad file I can see a reference to a - 1.cod beside that file: RIM-COD-URL-1:
I read that if you change the extension of the .cod file in a zip file, you can then extract other .cod files. This has not worked for me. I have only 1 file of cod in my build directory. I use the eclipse plugin.
Thanks for any help.
Make sure you are deleing files JAD and cod before making your build of 'production '.
If you app has crossed the line of 64K at a time, then came back, your JAD will still retain this obsolete reference to the unused COD file.
-
Problem when u - save the *.cod file using javaloader.exe
I have a project for coding in c#.
When I runing comand u save
using javaloader.exe and then only to save file to the same folder as javaloader.exe .cod. So, how can I save
to a different directory (folder).?
Please tell my way. ! Thank you very much. !Yes, thank you replied.
Now I got it in c#, I used the "FileInfo" and "MoveTo" properties
Affter all recorded the *.cod file in the same directory with javaloader, I call "MoveTo" to move all in my repertoire *.cod file (file made by myself).
That's all
Code:
for (int j = 0; j)< dem;="">
{
String filename = list_modules. CheckedItems [j]. ToString();
FileInfo info = new FileInfo (path1 + "\" + name + ".cod");
info. MoveTo (path2 + folder_name + "\" + info.) Name ());
} -
How to identify resource files in the cod file?
I want to create a file manager application, I put some png files in the "res/img/iconSet /" folder that the images of the icons, some files are named in this form: "rar_zip_7z.png"(une icône pour le fichier 3), so as a first step, I can analyze the file name and build a relationship between the type of image and icon file. ""
My question is is there a method to list the resource files in the cod file, like list() in FileConnection?
Yes, seems no way to I have generate a list on pc and read it as a workaround.
-
Cannot add properties of jad for the compatibility mode for the COD file metadata.
Hi all.
I need to disable the application that are installed compatibility mode using the ALX file. I read in an another messages it is possible to add custom file JAD directly properties in the COD file. I tried to create test projects using Blackberry JDE, Blackberry Eclipse plugin generation tools and use Eclipse with ant. Then I tried to add a JAD file for projects and by adding the following properties:
RIM-TouchCompatibilityMode: false RIM-TouchCompatibilityMode-UserChangeable: true
Also I tried specifying the properties of this:
RIM-TouchCompatibilityMode: 0 RIM-TouchCompatibilityMode-UserChangeable: 1
But it seems that it does not help to automatically avoid compatibility mode for applications that are built using JDE4.2.1 or earlier. I ran the test on Storm 9530 camera with 5.0.0.32 8 preinstalled JDE. I also wipe my phone several times to avoid the capabilities that the compatibility mode settings is saved.
In addition, before installing the application I also checked this jar file compatibility mode properties which was built contained in this manifesto.
Please, anobody can advise which go bad. Or it seems that there is no possibility to implement the solution that are built with the JDE at first then 4.7 and are installed using the ALX file.
I never could get this job.
Sorry, don't know what the deal is.
-
What compiler is used to make the .cod files?
What compiler is used in the development of Blackberry to make the .cod files? Is - this cap?
Yes you are right.
CAP takes to the entry of the .java files list or a JAR file and generates a .cod file that can be loaded onto the handset BlackBerry.
-
LV2010 app generator: Installer 'to the code level.
I build an installer in LV2010 and I wanted to see if anyone can give me more details about what the 'code upgrade' GUID on the information page of an Installer Version generates specifications. Is this code, the only thing that causes an upgrade? What happens if the code is the same, but other properties is different?
Specifically, I want to make an installer that replaces a deployed exe existing with a new version that has boot different screws and a different name. Is it possible (using the same code upgrade), or what I have to do an uninstall of the old when installing the new?
The installation program will compare between A program version numbers and b. program if program B is a more recent version, Brontosaurus removes then Alpha.exe and places Beta.exe.
So if you have the same upgrade code and a later version of the installer, even if they were made by various projects, the former draft version is uninstalled and the new draft version is installed.
-
Problem with the application after the installation of the .bar file
Hello
I created an application. Everything works fine when I compile Momentics, but when I create a file via the 'Export release build'.bar and install this file on the device app does not work properly.
The application creates a profiles and showing them in the list view, all the data in the json file. When I install the application of the .bar file create profile and change the settings for this profile and return to the main screen, profiles disappear. This problem will not occur when you compile a program on the phone directly from Momentics.
Welcome on the support forums.
you reproduce the workflow step by step with a debug version?
do you have any record that can give you advice? If not, add a little.
where is the location json file that you use to save the data? Perhaps a relative path is used. -
Each bitmap in the COD file extra resource
Hello
JDE generates an additional COD file for each bitmap resource, which I have added to the project. Their names are project - 1.cod, project - 2.cod, etc. Is their way to include these additional catches of cod in the default COD file that is just project.cod?
I do not; I think that once you exceed a certain size of a COD file (64 KB), it begins to chunk the COD upward into pieces. It's fine, when you deploy OTA or whatever, the phone will re-install the parts and all goes well.
-
[SDK WebWorks for Mac] Could not load the COD file to the device
I downloaded the latest version of the SDK of BlackBerry WebWorks for Smartphones (Mac version) to my laptop. I am able to zip/compilation/sign my application in a COD file. However, when I try to load the app on my BB device using javaloader, I get the following error: "error: file is not a valid Java code file.
The version of WebWorks package manager: bbwp version 2.2.0.15
The device is a BB Curve 9330 running version 6.0 (v6.0.0.524, platform 4.4.0.438)If this combination will allow me to deploy on the device? This combo generates a BB 7.0 application?
A test, we tried to load a COD file created on a PC, using bbwp version 2.0.0.18, and we were able to load with this version of the SDK.
Thank you
Scott
So certainly not customized API used here.
Can you maybe run a test with one of our sample applications by microsite or our repo samples ?
Maybe you are looking for
-
Free slot in my Satellite 1900
I have a 1900-303. In the space where you can install the extra RAM, it has a location for another card. The service manula field refers to a min PCI card.Anyone know what that, what he did, and I should get a. Thank you very much, Richard
-
FrontEndCallbacks sequence on the launch of TS test report
We have two configured systems, in theory, the same. We started to view the report for test FrontEndCallbacks.seq at startup. Not sure what happened to cause this but we have to stop this behavior before delivering the system. Any ideas what may have
-
I worked for 2 days to find out the movie maker, I thought happily, finished my video of my grandson and want to send it to a friend who will put it on a DVD for me. I can not send it because I do not use Outlook Express to send things, how can I mov
-
My husband bought a HP Office Jet 6500 E709n Serial TH9CP43015 VISTA 18A905044EA9 model wireless system PU # CB057-64007 MAC wireless #? MAC1844A9050D8427. There are about 2 weeks stopped abruptly the printer and turned the following message on the p
-
How can I disable Automatic Private IP Addressing APIPA in Windows 7?
How can I disable Automatic Private IP Addressing APIPA in Windows 7? I want to disable AUTOMATIC private IP addressing in Windows 7 64-bit edition. I disabled it in my old XP system by a simple registry change and it worked perfectly for my problem