Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dialing from a MIDlet

 
Blake Minghelli
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm just starting out learning about MIDlets, maybe this is a stupid question. Can you make a phone dial out from within a MIDlet?
I know that all cell phones have a built-in address book, but I'm just curious if I could build my own that allowed me to select an entry and then dial the number associated to it. I've seen a lot of articles about serial port access, HTTP, etc. but nothing on dialing...
 
Rodolfo Machado
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use inside of the MIDlet this code:
platformRequest("tel:+551188888888");
and the phone will initiate a voice call.
Rodolfo Machado
 
Jason Fox
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that dialing is completely up to the individual phone manufacturer. I was not aware of any J2ME classes for any version of midp or cldc that do any dialing. I do know that several OEMs, including Motorola (on which I do most of my J2ME) offer APIs that do things like dialing. However, using an OEM API means that your MIDlet will not be portable.
Jason
 
Blake Minghelli
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info guys. That's what I was afraid of.
 
Sathya Srinivasan
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You can use inside of the MIDlet this code:
platformRequest("tel:+551188888888");
and the phone will initiate a voice call.
Rodolfo Machado

To add to this, this is available only in MIDP 2.0. So the phone should first support MIDP 2.0. Also, I believe supporting this feature is implementation-dependent. So it might not be available by all MIDP 2.0 compliant devices.
 
Robert Porter
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jason Fox:
My understanding is that dialing is completely up to the individual phone manufacturer. I was not aware of any J2ME classes for any version of midp or cldc that do any dialing. I do know that several OEMs, including Motorola (on which I do most of my J2ME) offer APIs that do things like dialing. However, using an OEM API means that your MIDlet will not be portable.

Jason


Jason,

I'm interested in working with someone, or team of someones, who is capable of creating the simplest of voice activated dialing applications that can run on many phones. Core requirement: any audio input from the audio port causes a designated number to be dialed, WITHOUT pressing any button on the phone (except to turn the phone on or off, of course). If you can identify someone, or have someone get in touch with me, you will be doing a good deed.

Thanks,
Robert
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic