aspose file tools*
The moose likes Java Micro Edition and the fly likes Incomming call and Midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Incomming call and Midlet" Watch "Incomming call and Midlet" New topic
Author

Incomming call and Midlet

Nesan Krish
Ranch Hand

Joined: Feb 20, 2004
Posts: 40
Is it possible to configure a Midlet to be launched automatically when an incoming call comes?

Thanks.
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
Not to my knowledge. Normally, the AMS is setup such that when a call comes in when a MIDlet is running, the AMS will automatically pause the MIDlet and let the default phone application to take the call. So, essentially, the incoming phone call is outside the AMS' control. That said, each phone may have a hook to associate a program to handle phone calls, but it's not within the Java spec though.

It is somewhat similar to asking if a Java program can be run when your Windows OS boots up. You can, but that will be a control within Windows and not really within the JDK or even your app.

In short, you can setup a MIDP app to initiate a call, but not answer (at least not without using the phone-specific API or functionality). For all other types of inbound connections, you can use the PushRegistry class.

Also, take a look at these links:

http://www.velocityreviews.com/forums/t132020-j2me-call-control.html
http://www.devx.com/wireless/Article/20154/1954


Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
Nesan Krish
Ranch Hand

Joined: Feb 20, 2004
Posts: 40
I really want my Midlet to answer incomming calls.

Is Apple iPhone API offer this funtionality?

Thanks.
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
Is Apple iPhone API offer this funtionality?


I don't know, but to my knowledge, iPhone and Android (Google phone) have their own SDK and are not J2ME compliant. You might have to look into their individual SDKs to see what they offer. If they do have something, it would be specific to iPhone/Andriod and won't work on other J2ME phones.
Nesan Krish
Ranch Hand

Joined: Feb 20, 2004
Posts: 40
Can Symbian native C++ libraries be used to answer an incoming call programatically?

Thanks.
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
Not sure. Since this is a Java specific forum, you might have better luck elsewhere, such as a Palm forum or a forum that is specific to your Phone.
Nesan Krish
Ranch Hand

Joined: Feb 20, 2004
Posts: 40
In short, you can setup a MIDP app to initiate a call, but ....


After initiating a call, will a Midlet be able to read touch tone input from the recipient?

Thanks.

Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

This really has nothing whatsoever to do with studying for the Sun Mobile Application Certification. I'm moving this to the Java Micro Edition forum.

Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Incomming call and Midlet