Go Back   xda-developers > General discussion > General

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th April 2008, 01:02 PM
m3uch4's Avatar
m3uch4 m3uch4 is offline
Member
 
Join Date: Apr 2008
Location: Paris
Posts: 49
Default Tutorial: Creating MIDlet shortcuts in start menu, and changing the shortcut icon

Well, so you have installed Opera Mini, you love the app but hate having to open your MIDlet manager each time you want to run it. You can't have a direct shortcut icon in your start menu or your quicklaunch bar. Here is a tutorial to fix it (step 1 works with any MIDlet, step 2 works with any shortcut)

First i have to give due credit to Menneisyys and his awesome Java MIDlet Bible, and also to bobstar_fr for his shortcut icon mod tutorial


PREREQUISITES :
- Get yourself a decent MIDlet manager, the default windows one is crap. I would advise Esmertec Java Manager which can be found here.
- Download an Icon Editor for PC, for example the 30-day trial version of ArtIcons Pro will do the job.


STEP 1 : Creating a MIDlet shortcut
This step assumes you have installed Esmertec Jeodek or Esmertek Jbed (see prerequisites)
First, locate the list position of the Java MIDlet you want to shortcut in the Jeodek/Jbed application list. If you install Jeodek/Jbed as a fresh install, and then directly install Opera Mini, just use the number "0" to refer to Opera Mini.
Warning, if you uninstalled some midlets, the application list may not start at 0 or may have gaps. This number is in fact incremented starting at 0 each time you install a new MIDlet.

Then, go to \Windows\Start menu\Programs, and create a new shortcut. In the "target" field, type this :
"\windows\jbed.exe" -run s0_
Replacing the number 0 after the "s" letter by the list position of your MIDlet as found above.
If you have Jeodek installed, you will want to replace jbed.exe with jeodek.exe

Then click on your shortcut, et voila, the MIDLet runs immediately without having to launch the manager.

All credit goes to Menneisyys


STEP 2 : Modifying the shortcut icon
So you have a nice working shortcut, but it has the default java icon instead of the MIDlet icon. If you make many shortcuts they will all share the same (ugly) icon. You may want to change this.

The bad point is that you can't directly access the icon in a .jar file. You may only use icons included in .exe or .dll files. You could extract the .png icon from the .jar file and compile it into a .dll, but this is not the goal of this tutorial.

So if you want to change the icon of your newly-created Opera Mini shortcut, you will use another icon, for example the one from Opera 8.
Find the .exe (or .dll) which contains the icon you want to use, copy it on your PC, then open it with your Icon Editor. You will see a list with all icons included in the file, along with a number. Write down this number, it's the ID of your icon and you will need it.

For example, when you open OperaWM.exe in your icon editor, you see several icons, and the one we're interested into (with the red "O") has ID number 131.

Then go back to your Start Menu shortcut, and in the target field add the following at the end of the line :
?path_to_your_exe,-icon_ID
For the above example, this would be :
?\Windows\OperaWM.exe,-131

Et voila, you now have a nice icon for your shortcut.

All credit goes to bobstar_fr


To end this tutorial, here's a few ready-made examples :

Example 1:
Shortcut for Opera mini, installed in first position in your manager, with opera icon. In the target field of your shortcut, you would write :
"\windows\jbed.exe" -run s0_ ?\Windows\OperaWM.exe,-131

Example 2:
Shortcut for SFR Messenger, installed in second position in your manager, with MSN messenger icon. In the target field of your shortcut, you would write :
"\windows\jbed.exe" -run s1_ ?\Windows\WLMMessenger.exe,-50


Thats'it, hope you will enjoy.
__________________
HTC Blackstone Rom: Mia v1.5 RC3 / Radio: 1.13.25.24 / SPL: 1.56.OliNex

HTC Polaris Rom: M-Amine 2.0 RTM / Radio: 1.59.42.15 / SPL: 2.20.Olipro

Last edited by m3uch4; 25th April 2008 at 12:31 PM..
Reply With Quote
Sponsored Links

  #2  
Old 24th April 2008, 02:18 PM
owziee's Avatar
owziee owziee is offline
Senior Member
 
Join Date: Sep 2007
Posts: 542
Default

Great tutorial!!! I'll give it a try later tonight. I have jbed installed on storage card though (the modded version of jbed)... I wonder if that may become a problem?
Reply With Quote

  #3  
Old 24th April 2008, 02:44 PM
m3uch4's Avatar
m3uch4 m3uch4 is offline
Member
 
Join Date: Apr 2008
Location: Paris
Posts: 49
Default

Quote:
Originally Posted by owziee View Post
Great tutorial!!! I'll give it a try later tonight. I have jbed installed on storage card though (the modded version of jbed)... I wonder if that may become a problem?
Thanks !

No problem for having jbed installed on your storage card, just replace the "\Windows\jbed.exe" by "\Storage Card\jbed.exe" in all your shortcuts (insert subdirectory if needed).
__________________
HTC Blackstone Rom: Mia v1.5 RC3 / Radio: 1.13.25.24 / SPL: 1.56.OliNex

HTC Polaris Rom: M-Amine 2.0 RTM / Radio: 1.59.42.15 / SPL: 2.20.Olipro
Reply With Quote

  #4  
Old 25th April 2008, 10:10 AM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,309
Default

Great tutorial, I link to it from the Bible.
__________________
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
Reply With Quote

  #5  
Old 25th April 2008, 02:34 PM
@dom@'s Avatar
@dom@ @dom@ is offline
Senior Member
 
Join Date: Jan 2008
Location: Rome
Posts: 139
Thumbs up

Hi dude
What about link to MIDlet folders (shortcuts to folder and to any app installed inside it)?

Ciao
__________________
HTC TyTn II (Kaiser)
Original Italian ROM
Reply With Quote

  #6  
Old 25th April 2008, 06:02 PM
m3uch4's Avatar
m3uch4 m3uch4 is offline
Member
 
Join Date: Apr 2008
Location: Paris
Posts: 49
Default

Quote:
Originally Posted by Menneisyys View Post
Great tutorial, I link to it from the Bible.
Wow, i'm honored to get that kind of feedback from the java king of xda-devs.


Quote:
Originally Posted by @dom@ View Post
Hi dude
What about link to MIDlet folders (shortcuts to folder and to any app installed inside it)?

Ciao
I need to test this to see if installing MIDlets in folders breaches the rule of incremental numbering by installation date. Will keep you updated.
__________________
HTC Blackstone Rom: Mia v1.5 RC3 / Radio: 1.13.25.24 / SPL: 1.56.OliNex

HTC Polaris Rom: M-Amine 2.0 RTM / Radio: 1.59.42.15 / SPL: 2.20.Olipro
Reply With Quote

  #7  
Old 7th July 2008, 10:54 PM
JZ SmartMort's Avatar
JZ SmartMort JZ SmartMort is offline
Senior Member
 
Join Date: Mar 2008
Location: Lost in Hollywood
Posts: 567
Default JZ SmartMort v1.4 Released!

Announcing JZ SmartMort v1.4!

Now you can use JZ SmartMort to create Opera Mini and any other JBed application icon on your Start Menu!

Have a look at the screenshots of JZ SmartMort, available HERE or at SourceForge. Below are the prominent features that the software offers.
  • Copy / Paste
  • Clipboard / URL history
  • Multi-browser (Opera Mini, Opera Mobile, NetFront, Skyfire, Internet Explorer)
  • Make any installed browser system-level, where it opens links from anywhere. Ability to have a default browser (with a special timeout in case you want to open a link with a non-default browser).
  • Hardware buttons - supports Pocket PCs & SmartPhones for advanced hardware button mapping.
  • Opera Mini - shortcut on the Start Menu, different paste & URL handling methods to accommodate different phones.
  • JBed - create Start Menu shortcuts for any JBed app, run JBed App directly using JZ SmartMort, troubleshoot your JBed installation.
  • Ability to open synced Mobile Favorites with any browser, process killing and many other interesting features.
  • Includes general tweaks and hacks which will keep growing
Revisions:
v1.4 *** 2008-07-07

- Created help files.

- Browser: Skyfire fully compatible now, new scan/detection with fail-over paths (if browsers references don't exist in the usual locations like the registry). If default browser timeout is set to zero, the JZ Browser prompt will be bypassed entirely.

- Opera Mini: full-screen, kill JBed option, multiple URL & pasting options.

- Lots of new options for button mapping. All known registry and link file button hacks now integrated to allow virtually any command to be called up. Also provides ability to create a CUSTOM link file from scratch.

- Changed menus to include menu-returns for easy navigation and better user friendliness. Added letters to Action menu as qwerty keyboard shortcuts.

- Phone-specific menu under JZ Settings which expands button mapping for BlackJack II (Samsung i617) CV/MediaNet buttons, as well as, AT&T Tilt (HTC Kaiser) PTT & Long-PTT buttons. More will be added.

- Creation of Start Menu shortcuts & opening of JBed applications w/o needing to open JBed first.

- 3 different methods under JZ Settings > JZ Misc. Options for opening Favorites. Save a Favorite from the JZ Browser script when you pop a link.

- Incorporated VitoCopyPaste with a timeout to return your directional pad action button back to normal.

- Various speed & optimization considerations incorporated.

- Function to deal with MortScript losing focus (e.g. when Home is pressed while Mort choice menu is running).
__________________
Quote:
\\\\\\\
--\\\\ Change the way you use your Windows Mobile device with - JZ SmartMort.
--//// See screenshots & download it HERE or on SourceForge!
///////
Aiming to supplement everything Windows Mobile lacks.

Last edited by JZ SmartMort; 7th July 2008 at 11:07 PM..
Reply With Quote

  #8  
Old 8th July 2008, 10:01 PM
Fixup Fixup is offline
Member
 
Join Date: Nov 2006
Posts: 54
Default

I would like to add two things:

1) You can limit the memory for jBed and Jeodek:

59#"\Esmertec Java\jbed.exe" -run s2_ -DFile.maxStorageSize=4M

2) Shortcut for Tao Intent:

55#"\Program Files\TAO\jmm.exe" -r"Gmail","Google","Gmail"
Reply With Quote

  #9  
Old 6th March 2009, 02:54 PM
tobbbie tobbbie is offline
Senior Member
 
Join Date: Jan 2007
Posts: 141
Default

I'd like to add a reference to a free icon/resource editor that allows you to create your own set of icons, e.g. for reference in the JBed .lnk files.

Tool Download: http://icofx.ro/downloads.html
Online Help for library creation: http://icofx.ro/tutorials/tutorial4.html
__________________
Devices: LG KS20 <-? Vox <- Benq E72 <- Tornado <- Hurricane <- Amadeus
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:22 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.