08-27-2008 04:58 PM - edited 08-27-2008 05:05 PM
Our App seems to have graduated above 64k limit. Now there are two COD files myApp.cod and myApp-1.cod that get generated.
Majority of the times the OTA installtion goes very well. Rest of the times though the app gets installed, but when the user tries to start the app, an error shows up stating myApp-1.cod not found.
Is this a known issue? Is there any setting or something needed on the web server to ensure that both CODs get downloaded?
This is my JAD file:
RIM-COD-SHA1-1: 62 87 ea 3c 79 b1 94 3e 2f af c5 e7 da 58 42 a6 29 d6 af be
MIDlet-1: my App,img/myApp.png,
MIDlet-Description: my App
RIM-COD-SHA1: 0d 35 50 74 ef 4d 98 bb ac 47 ae 2c fd 5e 56 2b 17 d7 5a 20
08-27-2008 08:03 PM
I think you will find that if you use the BlackBerry browser (especially later versions), it can cope with sibling cod files, whereas WAP, Internet Browser or earlier versions of the Blackberry browser can not. No doubt Mark Sohm will put this statement right when he next looks.
Did a quick search on sibling in this forum and found the following that I think might help:
I also suggest you review the "Packaging and distributing BlackBerry Java Applications" of the Development Guide. There is some good information in there about sibling files and how to handle them
08-28-2008 10:31 AM
Peter is correct and this link provides the details.
What Is - The file size limit for wireless downloads
Article Number: DB-00015
However, by listing all of your sibling cods in the JAD file you should support all browsers. Have you extracted the 2 cod files to your web server? Or do you just have the main cod file there?
08-28-2008 04:46 PM - edited 08-29-2008 10:00 AM
I do not think the issue we are facing is related to what is discussed in those links. Something different. In our case, we do unpack the parent COD. The BlackBerry is downloading the myApp.cod, but not myApp-1.cod. Sounds like some sort of OS bug to me. Checking if there is any workaround.
Here are the contents of my webserver directory (number agains each file is the size in bytes):
08-28-2008 09:59 PM
Seems to be a mismatch in the cod names given in the original jad and description (myApp.cod etc), with the listing from the directory (myBoxToneInsight.cod). Would it be possible to see the jad associated with the myBoxToneInsight cods? Can you tell us what level of OS is on the device(s) that you see the problem with? And was the -2 in myApp-2.cod a typo?
You might like to try deleting the jad and then rebuilding the app to make sure you get a current jad built. This is assuming that the jad is built by the JDE - in which case, which level JDE are you using?
08-29-2008 10:59 AM - edited 08-29-2008 11:00 AM
peter, sorry about the confusion. there were several errors in my last reply.
I have created a new thread to clear the confusion and to keep all the relevant information in one place: