This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!