aspose file tools
The moose likes Java Micro Edition and the fly likes Configuring the MIDlet.platformRequest() in J2ME Toolkit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Configuring the MIDlet.platformRequest() in J2ME Toolkit" Watch "Configuring the MIDlet.platformRequest() in J2ME Toolkit" New topic
Author

Configuring the MIDlet.platformRequest() in J2ME Toolkit

sri ramu
Greenhorn

Joined: Jan 24, 2005
Posts: 4
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.


-----SriRamu SR.-----
Ed Schepis
Greenhorn

Joined: Feb 06, 2004
Posts: 25
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


SCMAD 1.0 - SCEA - SCJA - [<a href="http://www.edschepis.net" target="_blank" rel="nofollow">My Weblog</a>]
jyoti parikh
Greenhorn

Joined: Apr 07, 2011
Posts: 1
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Configuring the MIDlet.platformRequest() in J2ME Toolkit
 
Similar Threads
ConnectionNotFoundException
Java2ME ServerSocketConnection: ConnectionNotFoundException
ConnectionNotFoundException
ConnectionNotFoundException