J2me code to terminat phone call

Posted on 2004-04-25
Medium Priority
Last Modified: 2012-08-13
Does anyone know of an api/code for disconnecting a phone conversation?

I developed a midlet (with iden - midp2.0) that is activated by a push registry. The push registry will also activate it if there is a socket connection during a phone call (atleast it worked on the emulator...).
I want the midlet to then terminate that phone conversation.

I hope my explanation is clear. I'll really appreciate some example code since rather new at wireless programing.

Thank you.
Question by:bhnv9
  • 2
LVL 15

Expert Comment

ID: 10917563
You can't manage calls from within a MIDlet (unless you have some specific proprietary libraries).

Author Comment

ID: 10936542

What do you mean by "specific proprietary libraries".

LVL 15

Accepted Solution

jimmack earned 400 total points
ID: 10936767
There are some (a very limited number) of devices that provide libraries (APIs) that allow control of the device outside of the normal security sandbox.

As SimonTay is usually quite keen to point out ;-)...

" With the Siemens API for the TC45, you can use any of the modules AT commands, so you can do it there.



If you can send AT commands, then (I assume) you could do something like ATH to hang up a call.  However, on a more standard mobile phone, I doubt that you will be able to get hold of any APIs that allow this kind of access.  The only place you *might* be able to find something like this would be from the developers area of the handset manufacturers site (eg. Nokia - http://forum.nokia.com or Motorola - http://www.motocoder.com).

One other thing to consider is the way in which your socket "push" is intended to work.  On a live network (as opposed to within the emulator) mobile devices don't have fixed IP addresses, so pushing to a socket that is based on an IP address can't work at the moment.  As far as I can tell, the only practical push method that should work at the moment is SMS.

I would be interested to see any other opinions on this last point.

Expert Comment

ID: 11058765
Yep - ATH should do it! (or maybe dropping DTR if it's connected via a serial port).


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Need WiFi? Often, there are perfectly good networks that don't have WiFi capability - and there's a need to add it.  - Perhaps you have an Ethernet port into a network but no WiFi nearby. - Perhaps you have a powerline extender and no WiFi at the…
Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question