FORUMS

Tutorial: How to create a shortcut to a specific midlet

179 posts
Thanks Meter: 1
 
By guttrhead, Senior Member on 2nd March 2006, 06:56 PM
Thread Deleted Email Thread
I asked a few days back if this was possible and ended up e-mailing back and forth with a guy at TAO and he showed me how to do it after we figured out that the wizards java manager could handle it.

This is what he told me (I'll explain it all afterwards):
-r"<suite>","<vendor>","<name>"

where:

<suite> is the name of the MIDlet suite and can be obtained from the
MIDlet-Name line in the jad file.
<vendor> is the name of the MIDlet vendor and can be obtained from the
MIDlet-Vendor line in the jad file.
<name> is the name of the MIDlet and can be obtained from the first
parameter to the relevant MIDlet-<n> line in the jad file.


the shortcut to the manager program is \windows\jmm.exe, so a specific link would be \windows\jmm.exe -r"<suite>","<vendor>","<name>"

To find all of the information you need, you need the .jar or .jad file on your computer.
1. Open the .jar(.jad) file with winrar or 7zip or other unzipping program
2. Open the META-INF folder
3. Open the MANIFEST.MF file with a document viewer, I used wordpad.
Here's what google local gave me: I've bolded what you need to know
Manifest-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MIDlet-Name: Google Local
Created-By: 1.5.0_04-b05 (Sun Microsystems Inc.)
Ant-Version: Apache Ant 1.6.2
MIDlet-Vendor: Google
MIDlet-1: Google Local, GoogleMapsIcon.png, com.google.googlenav.Googl
eNav
MIDlet-Version: 1.0.0
MicroEdition-Profile: MIDP-2.0
4. Create a shortcut to the java manager(\windows\jmm.exe) on your ppc and open it for editing. I used Total Commander for this.
5. Remember that the shortcut has to be in -r"<MIDlet-1>","<MIDlet-Vendor>","<MIDlet-name>", so here, the full path should be \Windows\jmm.exe -r"Google Local","Google","Google Local"
6. Now you can link that to a button or put it in a launcher. When activated, the link will open the manager first, then the midlet.

Opera mini is \Windows\jmm.exe -r"Opera Mini","Opera Software ASA","Opera Mini"

I dont know how to link icons, so if someone could help me with that, I'd appreciate it. Now, all the links have the MIDlet manager icon.

I'd also love to hear what other cool midlets people are using.
2nd March 2006, 07:32 PM |#2  
Paladin27's Avatar
Member
Thanks Meter: 3
 
More
Excellent information! Now I can link to Google Local from my Today screen with Pocket Plus!
2nd March 2006, 07:53 PM |#3  
Junior Member
Thanks Meter: 0
 
More
Brilliant! I was looking for this exact information . Checked around on the Tao site but didn't find any documentation.

Changing the icon is done by adding the following to the end of the shortcut:
?\Program Files\Opera\opera.exe,0

The number is the n'th icon in the .exe file find out which using a resource hack tool. But it's usually 0 or one of the first ones, so simply try it out a few times. The two midlets I have come with their own icon displayed in the manager, and I found this file as a PNG image inside the Application Data directory, under Tao and then ever deeper down you'll find it.
But using png as icon didn't work for me. I'm guessing it needs to be converted to ICO or even BMP. Haven't had time to try that out yet.

And for the last part of your post, these are the cool midlets I'm using

Opera Mini - http://opera.mini.com (You obviously know this one)
MidpSSH - http://xk72.com/midpssh (Excellent freeware SSH client)
8th May 2006, 04:24 AM |#4  
bnycastro's Avatar
Senior Member
Flag Mandaluyong City
Thanks Meter: 4
 
Donate to Me
More
works with newmenu by saman as well thanks for the tip.

btw any more cool midlets for ppcs? the only thing i have so far is opera :|
8th May 2006, 08:09 AM |#5  
bnycastro's Avatar
Senior Member
Flag Mandaluyong City
Thanks Meter: 4
 
Donate to Me
More
I noticed the shortcut only works if you've run the applet atleast once. Otherwise only Midlet Manager opens up. Not really a big deal though
30th November 2006, 09:17 PM |#6  
Member
Thanks Meter: 0
 
More
Question?
Is there a way to do this with IBM's Java Midlet Manager. I tried the syntax listed here and it doesn't work. It opens up the midelet manager, then closes right away.
1st December 2006, 06:18 PM |#7  
Senior Member
Thanks Meter: 23
 
More
BTW, this thing is case sensitive. I tried GMail and it didn't work.
This is for Gmail. Copy paste and enjoy.

46#"\Windows\jmm.exe" -r"Gmail", "Google", "Gmail"
7th December 2006, 05:37 PM |#8  
Senior Member
Thanks Meter: 40
 
More
Quote:
Originally Posted by Tokay

Brilliant! I was looking for this exact information . Checked around on the Tao site but didn't find any documentation.

Changing the icon is done by adding the following to the end of the shortcut:
?\Program Files\Opera\opera.exe,0

It would seem that you need to have opera mobile installed for this to work though right?
2nd January 2007, 08:01 AM |#9  
Senior Member
Flag Los Angeles, CA
Thanks Meter: 26
 
More
Quote:
Originally Posted by KINetics

Is there a way to do this with IBM's Java Midlet Manager. I tried the syntax listed here and it doesn't work. It opens up the midelet manager, then closes right away.

Did you ever figure this out? I'd like to know how to get it to work.
22nd August 2007, 01:52 AM |#10  
famewolf's Avatar
Senior Member
Thanks Meter: 1,340
 
Donate to Me
More
Anyone managed to do this on esmertec's java manager because this does NOT work:

"\Windows\jeodek.exe" -r"Gmail", "Google", "Gmail"
22nd August 2007, 03:45 PM |#11  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Paladin27

Excellent information! Now I can link to Google Local from my Today screen with Pocket Plus!

why didn't you just install the cab file then? you can find it if you type gmm.cab in google.
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes