Palm OS MIDP Icons
When loading a MIDlet on a Palm OS device, I want to change the default icon displayed on the Palm OS desktop.
I have tried specifying several .png files in the MIDlet Jad file and verify that the icon is included in the .jar. However, the default MIDlet icon still displays.
How can I specify a Palm OS compatible MIDlet icon?
(Note: I do not need to display an icon in the MIDlet. I am asking about the Palm OS icons displayed for launching programs on the Palm.)
Ok I hope this will help it took me a few days to figure this one out.
I first had to make sure that I was using a 1-bit bitmap file that was 22 x 22 pixels. To work it has to be a bitmap image from what I have found. I used the Advanced Batch Converter app from www.download.com to convert my png image to 1-bit image.
Next you have to convert the the jar file to prc file from the command line. I used note pad to create a file called prcme.bat. In note pad you place the following command lines:
java -jar MakeMIDPApp.jar
-version 1.0
-creator prdi
-icon icons/myApp.bmp
-nobeam -v
-o Floor.prc
-name "Floor Est."
-JARtoPRC project.jar project.Main
Above Explained:
java - jar MakeMIDPApp.jar is the jar that creates
prc file
-version What ever app version your creating
-creator a 4 character id used to identify your app.
especially a good idea if you are going to distribute
your app that has a conduit connecting a to a DB.
-icon the location of your icon
-nobeam -v Not beamable and verbose
-o name of the output file (App.prc)
-name name of app that appears on Palm
-JARtoPRC first is the Name of the Jar then a space
Name of the main class
Lets say my jar file is in directory c:\Palm
You place the .bat file and icons in the Palm directory.
Next Copy and Paste the MakeMIDPApp.jar file from your J2ME Wireless Tookit that resides in the following directory:
C:\J2mewtk\wtklib\devices\PalmOS_Device
to the Palm directory.
To keep track of errors it does help to use the following to see the script exectuting: start, run, open: cmd
Last just double click the prcme.bat file and if a prc file appears in the Palm directory it should have worked.
Install the prc file and verify that the icon shows up and enjoy.
I'll check back to see if it worked for you.