PDA

View Full Version : Tutorial: How to create a shortcut to a specific midlet


guttrhead
2nd March 2006, 07:56 PM
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.

Paladin27
2nd March 2006, 08:32 PM
Excellent information! Now I can link to Google Local from my Today screen with Pocket Plus!

Tokay
2nd March 2006, 08:53 PM
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)

bnycastro
8th May 2006, 05:24 AM
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 :|

bnycastro
8th May 2006, 09:09 AM
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 :)

KINetics
30th November 2006, 10:17 PM
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.

LordPhong
1st December 2006, 07:18 PM
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"

bittermormon
7th December 2006, 06:37 PM
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?

gtdRR
2nd January 2007, 09:01 AM
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.

famewolf
22nd August 2007, 02:52 AM
Anyone managed to do this on esmertec's java manager because this does NOT work:

"\Windows\jeodek.exe" -r"Gmail", "Google", "Gmail"

riggard
22nd August 2007, 04:45 PM
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.

risidoro
8th September 2007, 11:43 AM
Anyone managed to do this on esmertec's java manager because this does NOT work:

"\Windows\jeodek.exe" -r"Gmail", "Google", "Gmail"



The answer to your question is HERE (http://pdaphonehome.com/forums/ppc-6800-xv6800/91837-opera-mini-4-beta-2-released-includes-info-new-java-midlet-manager.html)

You have to thank the author of the article and the great Menneisyys for posting the link in this post (http://www.pocketpcmag.com/blogs/index.php?blog=3&title=midlet_manager_news_anyone_from_esmertec&more=1&c=1&tb=1&pb=1)

Bye

Menneisyys
5th October 2007, 05:01 PM
(Hopefully) final MIDlet Bible main feature & hack & standards compliance chart published!


It was yesterday that I’ve published (http://www.pocketpcmag.com/blogs/index.php?blog=3&p=2221&more=1&c=1&tb=1&pb=1) a larger excerpt from my forthcoming MIDlet Bible (a full roundup & tutorial explaining what MIDlets are, why you would want to run them, what applications there are to do this etc.), focusing on mostly 3D games. I haven’t been lazy in the meantime: I’ve made some serious updates to the main feature & hack & standards compliance chart of the Bible. The reason I’m posting it as a preview is pretty simple: it will still take me some two or three days to completely finish and, finally, publish the MIDlet Bible. In the meantime, however, you can already check out the new chart. I’m absolutely sure you’ll find it useful if you’re into gaming or running probably the, after Opera Mobile, second best Web Browser for Windows Mobile, Opera Mini 4 beta 2. Or, alternatively, the really unique and useful Gmail MIDlet, which is far more usable than any other Windows Mobile mailer tool.

I’ve, as has already been stated, greatly enhanced the previous version published over a month ago. I’ve added discussions of ClearType / font smoothing, automatic network connection, proxies, text input fields / areas etc. and I’ve even published the source code (!) of some of my test MIDlets I’ve written specifically for these tests. (I’m a Java pro.)

The chart is HERE (http://www.winmobiletech.com/092007MidletBible/CompatibilityAndMain.html), should you want to check it out before I, finally, publish the MIDlet Bible.

Comments are REALLY welcome!

hoyje
17th November 2007, 02:19 PM
Try this:

60#"\Windows\jmm.exe" -r"Opera Mini","Opera Software ASA","Opera Mini"

Dick Starbuck
1st February 2008, 05:13 PM
my opera mini link works great using jbed and the permissions fix, BUT...

I want to know if it is possible to make a link to a page (favorite/speedial #1) within opera. I have some shortcuts for PIE (default browser) on my today screen and wondered if I could do the same with opera pages without opera being my default browser. I have seen some shortcut creators that look interesting, but I am not sure about what path this link would need.

Any ideas?

thanks

inneyeseakay
11th February 2008, 04:23 AM
my opera mini link works great using jbed and the permissions fix, BUT...

I can't get my Opera link to work using jbed, where do you get the permissions fix... maybe that's my problem?

I'm using:
60#"\Windows\jbed.exe" -r"Opera Mini","Opera Software ASA","Opera Mini"

Dick Starbuck
12th February 2008, 01:39 AM
jbed permissions fix is at the bottom of this page...
http://pdaphonehome.com/forums/ppc-6800-xv6800/91837-opera-mini-4-beta-2-released-includes-info-new-java-midlet-manager.html

gelcode
4th April 2008, 08:16 AM
Does anyone have this working with the ne Opera Mini 4.1? Latest Jbed.

joebaggg
5th April 2008, 12:57 AM
hey can someone turn this into english for me haha sorry. i wanna get opera 4.1 shortcut into launcher. im not good at this stuff unless there is a step by step for dummies:)

Dick Starbuck
5th April 2008, 09:47 PM
I downloaded the latest 4.1 and it works great... Because I downloaded the new version before I deleted the previous version, I had to change my shortcut to point to r1 not r0. The new version has permissions fix already added I believe.

Everything is working brilliantly

d0hboy
9th April 2008, 02:22 AM
...I want to know if it is possible to make a link to a page (favorite/speedial #1) within opera. I have some shortcuts for PIE (default browser) on my today screen and wondered if I could do the same with opera pages without opera being my default browser.
I'm also interested in this answer, since iCube installation automatically gives you such sites as youtube and accuweather.com, defaulting to IE. If we could get this going w/ Opera Mini, so much the better.

88smiley88
12th August 2008, 11:45 PM
i got total commander, but where i
find the jmm.exe i dont have that file
or i just type that?

88smiley88
13th August 2008, 12:06 AM
well i read another post and it says you can also use
JBED.EXE, which is the one i have. So i put CREATE SHORCUT
on the commander, but then i dont know where to find the shortcut
or how to put it in my today screen.
THanks in advance.

kyro
24th September 2008, 02:23 PM
did they changge somthing? i got latest version and no shortcut. cant finf jmm.exe in \windows .