On Tue, 13 Jul 1999, Rachabathuni Sailesh-P0927C wrote:
> Hi all,
>
> I am playing with the KVM for PalmPilot. After I create the classes I want,
> I can use 'MakePRC' tool to create a .prc file out of those classes. I can
> then install that on my Palm and run it as a separate app. What I don't
> understand is, how the 'MakePRC' tool assigns a CreatorID to each app. Does
> it choose randomly? Or, is it not required for each app to have a unique
> CreatorID?
yes and no! :>
if you want to specify a creatorID, you use the option:
-creator ABCD <--- "ABCD" is the creator ID in this case
if you dont specify the creatorID this is how it generates it:
if(dbCreator == null)
{
int k = PalmUtil.longCRC(mainClass) >>> 1;
char ac[] = new char[4];
ac[0] = 'J';
ac[1] = (char)(32 + k % 224);
k /= 224;
ac[2] = (char)(32 + k % 224);
k /= 224;
ac[3] = (char)(32 + k % 224);
k /= 224;
if(((ac[1] | ac[2] | ac[3]) & 0x80) == 0)
ac[1 + mainClass.length()%3] = (char)((0x80|k)&0xff);
dbCreator = new String(ac);
if(verbose > 1)
System.out.println("Creator id = " + dbCreator);
}
so it is not random. :> done using some CRC of some sort :>
what i suggest you do is register a creatorID at www.palm.com/devzone
and then use the -creator option! :>
i received the above code by decompiling the kjava class files.
(for gathering this information only)
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11