Tuesday, December 6, 2011

To add an icon to the main menu we have any skills relating to the modification

  • 1st If you do not have a JAD file ...
JAD file, you can easily create from a program:
JAD Creator
or
JAD Maker
I used JAD Creator
WE NEED TO KNOW AND GET
MIDlet Name and Vendor MIDlet
  • 2nd If you have a JAD file ...
If the application was attached to the JAD file, you do not have it already set up, but only a "preview" what's inside ... We are interested in is the same as above - the line MIDlet MIDlet Name and Vendor.
Ready application (JAD + JAR) to throw content, predefjava folder somewhere - wherever (whether the application or game, or directly in predefjava) - the phone itself can find them when you first start the phone.

  • 3rd We have prepared applications - and what's next?
Now with content draw a very important file from - predefhiddenfolder \ predefmenus \ menusettings.xml and open it with a text editor (eg WordPad).

Its contents should look something like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<menu_settings>
<version major="1" minor="5" />
<mainmenuview value="list" />
[B] <mainmenu>
<menuitem id="78" />
<menuitem id="73" />
<menuitem id="66" />
<menuitem id="67" />
<menuitem id="79" />
<menuitem id="69" />
<menuitem id="71" />
<menuitem id="70" />
<menuitem id="68" />
<menuitem id="72" />
<menuitem id="75" />
</mainmenu>[/B]
<idle_shortcuts>
<visual_indication value="off" />
<left_softkey id="3" />
<right_softkey id="2" />
<scroll_up id="23" />
<scroll_right id="51" />
<scroll_down id="2" />
<scroll_left id="5" />
</idle_shortcuts>
<gotomenu>
<menuitem id="37" />
<menuitem id="117" />
<menuitem id="16" />
<menuitem id="34" />
<menuitem id="40" />
<menuitem id="45" />
</gotomenu>
<shortcutbar>
<menuitem id="51" />
<menuitem id="32" />
<menuitem id="17" />
<menuitem id="23" />
<menuitem id="37" />
</shortcutbar>
</menu_settings>
 
In <mainmenu> tag contains information about the display icons (in our case there are only the standard).


Now, between the markers and <mainmenuview> <version> <nativelinks> and add the tag line:
<nlink id="1">localapp://jam/launch?midlet-name=MIDlet Name;midlet-vendor=MIDlet Vendor</nlink>

The ID is the number of our icons (any). In place of the MIDlet Name write what was in the JAD file in mniejscu "MIDlet Name" - in my case TTPod, in place of the contents of the MIDlet Vendor "Vendor MIDlet" JAD file for the application. For example:
Application:  Opera
MIDlet-Name: Opera Mini
MIDlet-Vendor: Opera Software ASA



<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<menu_settings>
<version major="1" minor="5" />
[B]<nativelinks>[/B]
<nlink [B][COLOR=#FF0000]id="1"[/COLOR][/B]>localapp://jam/launch?midlet-name=[B]Opera[COLOR=#FF0000]%20[/COLOR]Mini[/B];midlet-vendor=[B]Opera[COLOR=#FF0000]%20[/COLOR]Software[COLOR=#FF0000]%20[/COLOR]ASA[/B]</nlink>
[B]</nativelinks>[/B]
<mainmenuview value="labelgrid" />
<mainmenu>
<menuitem id="78" />
<menuitem id="73" />
<menuitem id="66" />
[B][COLOR=#FF0000]<menuitem nlink="1"/>[/COLOR][/B]
<menuitem id="67" />
<menuitem id="79" />
 
 
Please note two things:
1st Swapped spaces with% 20 (do so whenever and Name fields are vendor spaces)
2nd I added one line between <mainmenu> a </ MainMenu>:
<menuitem
nlink="1"/> - link is responsible for this shortcut to display the
application with ID = 1 listed in <nativelinks>


In the same way we add other applications.
Example file contents:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<menu_settings>
<version major="1" minor="5" />
<nativelinks>
[B]<nlink id="[COLOR=#0000FF]1[/COLOR]">localapp://jam/launch?midlet-name=TTPod;midlet-vendor=TTPod</nlink>
<nlink id="[COLOR=#008000]2[/COLOR]">localapp://jam/launch?midlet-name=Dictionary%20(PL);midlet-vendor=Openknowledge%20GmbH</nlink>
<nlink id="[COLOR=#FF0000]3[/COLOR]">localapp://jam/launch?midlet-name=HighSpeed%203D;midlet-vendor=HeroCraft%20&%20APetrus</nlink>
<nlink id="[COLOR=#FF8000]4[/COLOR]">localapp://jam/launch?midlet-name=Opera%20Mini;midlet-vendor=Opera%20Software%20ASA</nlink>[/B]
</nativelinks>
<mainmenuview value="labelgrid" />
<mainmenu>
<menuitem id="78" />
<menuitem id="73" />
<menuitem id="66" />
<menuitem id="67" />
<menuitem id="79" />
<menuitem id="69" />
<menuitem id="71" />
<menuitem id="70" />
<menuitem id="68" />
<menuitem id="72" />
<menuitem id="75" />
[B] <menuitem nlink="[COLOR=#0000FF]1[/COLOR]"/>
<menuitem nlink="[COLOR=#008000]2[/COLOR]"/>
<menuitem nlink="[COLOR=#FF0000]3[/COLOR]"/>
<menuitem nlink="[COLOR=#FF8000]4[/COLOR]"/>[/B]
</mainmenu>
<idle_shortcuts>
<visual_indication value="off" />
<left_softkey id="3" />
<right_softkey id="2" />
<scroll_up id="23" />
<scroll_right id="51" />
<scroll_down id="2" />
<scroll_left id="5" />
</idle_shortcuts>
<gotomenu>
<menuitem id="107" />
<menuitem id="37" />
<menuitem id="121" />
<menuitem id="23" />
<menuitem id="34" />
<menuitem id="57" />
<menuitem id="51" />
<menuitem id="16" />
<menuitem nlink="1" />
<menuitem id="32" />
<menuitem nlink="2" />
<menuitem id="9" />
<menuitem id="10" />
<menuitem id="4" />
<menuitem id="105" />
</gotomenu>
<shortcutbar>
<menuitem id="57" />
<menuitem id="23" />
<menuitem id="37" />
<menuitem id="121" />
<menuitem nlink="1" />
</shortcutbar>
</menu_settings>
 
When done, save it and throw us into a new file instead of the old
content. After uploading the modified file IMAGE we enjoy shortcuts to
your favorite applications in the main menu of the phone. 

3 comments:

  1. Plz i cant undrstand Say this proces in easy method
    plz plz
    i want games and al my social networks in main menu

    ReplyDelete
  2. I want to add fb shortcut icon in menu.plz tell me ho i do?

    ReplyDelete