• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Direct shortcut to java app

 
Michelle de Beer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking a device that would allow me to define a shortcut to a button that starts my java application. I have tried several phones, but the best solution yet is a shortcut to the folder containing the java-applications (SE s700i).

In short, one click to start my application.

I know this is a device specific question, but at this moment, I only need one device that can do the job.

Any thoughts?
// Michelle
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every phone I've owned can do that including

The Sanyo 4900
The Treo 300/600/650
The SonyEricsson T608 (I think)

Wait, let me check my current phone (LG 325)... Well, it's close. One of the softkeys is usually "Web" but it can be replaced by "Events" in some cases. Although, you can define one of the direction pad keys to be "Web" so that would always work.

This is a trick on Sprint PCS phones. If you define your browser homepage to be something like "midlet:foobar" then pressing the "web" key will launch the browser which will cause the phone to redirect to the "foobar" MIDlet.

There are some caveats. I don't think it will work if you are outside of coverage. Some phones may display a "browser not available" warning before they realize you aren't actually launching the browser.

Some browsers do not take you to the homepage every time you launch the browser. Often they will return you to what ever page you were last using so if you really want this to work everytime, you effectively have to give up the browser. Besides, it makes it very difficult to use the browser when it redirects to your MIDlet everytime it starts.

William Frantz
http://sprintdevelopers.com
[ May 11, 2005: Message edited by: William Frantz ]
 
Michelle de Beer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you William, I will look into these phones as soon as I can.

I tried to set the homepage to midlet:myMidlet on my phones, but it did not work. Got "400 not found".

I was thinking I might be able to start the application with a header-location call with an absolute path to the midlet instead.

// This is done in PHP
// Page: startMidlet.php
header("Location :/PathToJava/myMidlet.jar");

// Maybe you could try if you are able to start the
// midlet this way on your Sprint phone and let me know if it works
header("Location:midlet:myMidlet");

Calling the local path to the midlet would have to specific for each device, but since I am only evaluating the possibilities of this at the moment, it will do for now.

Anyone know what the direct path to the midlets is for these phones:
- SE s700i
- SE p900
- Motorola e1000
- Samsung d500 (to buggy to develop for, but suitable for this test)

Best
// Michelle
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the following page you will find PHP code for doing an HTTP redirect to launch a MIDlet that works for most (all?) Sprint PCS phones.

http://www.sprintdevelopers.com/postt125.html


William Frantz
http://sprintdevelopers.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic