I there any way that I can see the contents of a Blackberry COD file to check which classes are in there?
You can't.
You can unzip content of *.jar, not the *.cod.
Earlier you could use some Zip utility like 7Zip etc to see the contents in the jad, However I got error with the cod files generated by the newer versions of the JDE
Oh, I think we can view content of BB COD file. I use Total Commander to view content of archive file, such as ZIP, JAR or COD. It's OK.
Related
I'm developing a tile engine with actionScript-3 for IOS machines. Is there a way to package JPG files with IPA and then read them with Adobe Air's FileStream Class. I need to read files asynchronously. Embeding them or putting them in a swc wouldn't help.
I understand how it works on desktop.
var file:File = File.documentsDirectory.resolvePath("myfile.txt");
On desktop, means:
[user_dir]/Documents/myfile.txt
On IOS:
[app_dir]/Documents/myfile.txt
How can I package the IPA that has "myAsset.jpg" in "[app_dir]/Documents/" directory?
I tried to open a "Documents" directory and put some files in it and include it in the package content section of the run configration of flash builder 4.5.1. But that didn't work.
Thank you.
When you package the image files with your application, they will be in the application directory, which you can access with the File.applicationDirectory property. You should be able to load your images directly from there. If you want the images in the documents directory, you will have to copy them there after installation.
One Addition to Joes answer:
When you add a folder over adt the actual folder is added not its contents.
So if you add the Folder assets you access your images like this:
File.applicationDirectory.resolvePath("assets/image.jpg");
I am trying to upload a BB app to its App World. Everything I read makes a reference to upload a COD file or some COD files.
When you get to this point when submiting the app, it gives two choices to do the upload. One is file by file and the other is to upload a .ZIP file.
My problem is that when I sign my app, it generates a JAR file where are all my images and classes and .COD files and .CRB files (languages RRC files).
What I do is to convert this JAR to ZIP file and upload the app .ZIP way but it gives me an error because of the name of CRB files that now turns to have some strange characters. They come from a resources_en.rrc to a resources_Ășen.crb
I am doing something wrong but I can't figure it out. What is the right way to do this or what am I doing wrong?
Thanks in advance!
For Eclipse:
The COD is in your workspace\ProjectName\deliverables\Standard\\YourProject.cod
All you need to upload the the App World is this COD file, don't need to do any converting of a JAR. Do, however, make sure you have signed the file by (in Eclipse) right clicking on the project -> BlackBerry -> Sign with Signature Tool
The COD file is produced by RIM's compiler (rapc) and is the file that is signed. If you are using JDE for development it should be in the top level directory of your workspace. I'm not familiar with where Eclipse puts it.
I have a JAD File which I want to run on my simulator. So I do these things to download that JAD file on my simulator ...
I have changed the SD card and browse that project where the JAD file is kept.
Now when I browse that SD card I find there is a JAD file. When I click on it I got one download button and one cancel button. On clicking the download button it gives me information like "downloading failed".
When I click on the details button it says "invalid cod file not found". What should I do?
The .jad file does not contain any of your actual code. It is actually a text file, you can open it in a text editor and read it. The .jad file just contains pointers to your .code file(s). So, you need to make sure that your .cod file(s) are available in the same folder as the .jad file.
Build your app, and generate a .cod file. Then rename the .cod files to .zip file and then extract. Then you will get a set of .cod files. You need to have all of them and they should be signed.
You cannot download the .cod files to an SD card and install like Java ME. You need to either desktop software or your JDE or you need to deploy all of your .cod files along with your JAD file in some server. Then access the JAD file link from a browser. Here we go .. it's done.
Got a .jad and a bunch of .cod files. Can I view the contents of the .cod files? Thanks
.cod files are basically .jar files that have been processed through RIM's compilation tool chain. Additionally RIM tools strip some information from the .jar files before cod-ifying them and if the size is too big, it splits and zips the pieces. So if you have a bunch of .cod files for the same .jad file you should first try unzipping them using a standard zip program then join them using some concat utility and finally try using a .jar file decompiler to see if you can hack the byte code. That is pretty much your best bet.
I am facing a peculiar problem when trying to build and sign my blackberry app with signing keys .The problem is its creating 2 debug files(sibling files) and also showing sibling .cod files when i am trying to sign the application with the keys but in the final deliverables folder there is only one .cod file .
However , earlier it was running fine and there was only one .debug and .cod file .
I cant understand what is the actually problem.
Any help or idea will be highly appreciated.
Thanks a lot in advance.
Blackberry creates multiple .cod file when the .cod file size is more than 64 kb. In final folder what you are looking into may be the \deliverables\Standard\ [version no.] folder. There you can find a single .cod file. Actually this is not a .cod file. This is a zip file. Just rename to .ZIP. You can see multiple .cod files inside that. To publish to a web site you need multiple cod files and .jad file. But for blackberry app world submission that single .cod file is enough.