Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Process ...

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eduardo,

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

Thank you again ...

Best of luck ...
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marques /Vladimir,

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

Please explain if possible
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic