This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes How to Calling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to Calling" Watch "How to Calling" New topic
Author

How to Calling

Siharat Thammaya
Greenhorn

Joined: Sep 28, 2006
Posts: 7
Dear Developers

I want to write j2me code to open connection on my phone and calling to other phone number.


pom
Santhana Lakshmi.S
Ranch Hand

Joined: Aug 16, 2005
Posts: 82
hi
check out this two links
http://developers.sun.com/techtopics/mobility/midp/ttips/platformRequest/index.html

http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_java_0804.jsp
Alberto Casera
Greenhorn

Joined: Jun 01, 2006
Posts: 3
Use method MIDlet.platformRequest("tel://...."). It works only with MIDP2.0 .

I have a question: does anybody know, when I make a call with the above method, how I can get in my midlet class the event that the other side on the phone network has anawered ?
In other words, how to set a "listener", to signal te dialing events?
Siharat Thammaya
Greenhorn

Joined: Sep 28, 2006
Posts: 7
Thank you.
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Alberto, I believe you can't register such an event listener or any other.

The call issued with platformRequest() will run in a platform specific manner
and without any interface with the requesting Midlet.

I advise you to read the platformRequest() javadoc and MIDP 2.0 specs carefully about what to expect (and not to ) from this method.

Regards,
Eduardo
[ September 29, 2006: Message edited by: Eduardo Marques ]

Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Alberto Casera
Greenhorn

Joined: Jun 01, 2006
Posts: 3
Eduardo, you're right.
I've discovered a new set of APIs under the JSR-253: MTA (Mobile Telephony API).
It seems to be what I need right now. Anybody knows when these will be available in the next devices?
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Thanks for the link, I was not aware of JSR 253.
I have no idea of what devices are supporting this JSR.

It might be a sign of low adoption so far that the Wireless Toolkit
does not yet support this JSR. But surely this should change in the near future.
Regards,

Eduardo
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Calling