wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Process ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Process ..." Watch "Process ..." New topic
Author

Process ...

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

In J2SE there is a way to fire up processes using the Runtime and Process classes.

Is there an equivalent technique to use in J2ME ?

I have this form of web-page names shown using ChoiceGroup, the thing i want to is that when i click on a choice, it automatically opens that page for me.

I was wondering if i can do that without using the embedded explorer of my cell-phone (using a process that fires up the explorer passing the address of my web-page).

Thanks in advance ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Technically you can achieve your goal but not by firing "processes":

1-You can use MIDlet.platformRequest(URL) so that the URL is loaded by the phone's brower.
The MIDlet may also have to exit for this to happen (see the Javadoc).

2-If you don't want it done by the phone's browser, you can think of firing a MIDlet in the same MIDlet suit by using Push Registry alarms and some form of indicating the URL to the other MIDlet (eg using RMS will work on any device). See the PushRegistry javadoc and MIDP specs.
[ March 25, 2007: Message edited by: Eduardo Marques ]

Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi Eduardo,

Thank you so much, it's a great guide.

Thank you again ...

Best of luck ...
Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
Marques /Vladimir,

I dint get what you meant by the second option..

Please explain if possible


Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
What I meant was that one can schedule the launch of another MIDlet by using PushRegistry.registerAlarm().

Regards
[ March 25, 2007: Message edited by: Eduardo Marques ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Process ...
 
Similar Threads
How to trap the Print Screen
Bonus Exam
Need help: nede to print in landscape orientation
browser compatibilty mozila and IE
Desktop , Taskbar , Systray not loaded at startup