Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Configuring the MIDlet.platformRequest() in J2ME Toolkit  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I just tried calling a mobile device from another.... In documentation, they defined that we can do using a static function platformRequest() in MIDlet class... while trying that, I got an message in my J2ME Toolkit "platformRequest is not configured" like that... i donno whether to set something in the settings.... i enabled all the optional package use... or else is there any to make a phone call through a mobile device to another?.. if there exist, can anyone help me in tht ...

In the Documentation of the J2ME toolkit , the Syntax of the platformRequest method is given as
public final boolean platformRequest(String URL)
throws ConnectionNotFoundException

My code as follows :

try
{
//I set the phone number like 5550000 in settings
boolean b = platformRequest("tel:+5550000");
}
catch(ConnectionNotFoundException e){System.out.println("Caught Exception inside "+ e);}

so , I donno where the Problem lies. Is that compulsory to do some Security permissions in the setting of the J2ME toolkit. If so can U plz tell that procedure. I'm bit trouble in making that logic a success one .

contact E-Mail :- sriramusr@yahoo.co.in
contact number :- +91 94430 14916

--Posted by SriRamu SR.
 
Greenhorn
Posts: 25
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sri Ramu,
to make it work just add below lines to system.config file in wtk lib dir

# platform request
com.sun.midp.midlet.platformRequestCommand: "C:\Program Files\Opera\opera.exe"

Here the command is to launch opera browser and you can use it with the statement:
platformRequest("http://www.something");


Cheers
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ed Schepis wrote:Hello Sri Ramu,
to make it work just add below lines to system.config file in wtk lib dir

# platform request
com.sun.midp.midlet.platformRequestCommand: "C:\Program Files\Opera\opera.exe"

Here the command is to launch opera browser and you can use it with the statement:
platformRequest("http://www.something");


Cheers



thnks so much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!