Customizing the Midlet Icon Using J2ME-Polish

I am using J2ME Polish version 2.0.7 along with ant to build my Midlet application. For specifying the main class, application name and icon, the J2ME Polish documentation assumes that I am using midlet

an element within an element build

.

<build usePolishGui="false" >
    <midlet name="My Killer App." icon="/logo.png" class="com.foo.MidletMain" /> 
...
</build>

      

however in the resulting .jad file only the class name is taken into account when creating my Midlet.

MIDlet-1: MidletMain,,com.foo.MidletMain

      

Can someone figure out what I am doing wrong?

0


a source to share


2 answers


No, it should be in the info section of the j2mepolish target:



<project ...>
<target name="j2mepolish"  ...>
        <j2mepolish>
            <info ... icon="xxx.png">

      

+1


a source


What you need to do is:

<j2mepolish>
.....
<build>  
  ...
   <jad>
         <attribute name="MIDlet-Icon" value="/icon.png" />
   <jad>
</build>

      



Your badge will work!

0


a source







All Articles