Solved

J2me code to terminat phone call

Posted on 2004-04-25
6
645 Views
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.
0
Comment
Question by:bhnv9
  • 2
6 Comments
 
LVL 15

Expert Comment

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

Author Comment

by:bhnv9
ID: 10936542
Hi-

What do you mean by "specific proprietary libraries".



0
 
LVL 15

Accepted Solution

by:
jimmack earned 100 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.

www.tdc.co.uk/gprs/tc45.htm"

(http://www.experts-exchange.com/Programming/Wireless_Programming/Q_20963204.html)

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.
0
 
LVL 4

Expert Comment

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

Simon
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
D-link DWL-2600AP - Guest network 1 72
Wifi access lost on PC randomly but ok in other devices 17 63
Best Access Point Device 25 72
IBM laptop won't connect to my WiFi 12 63
In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
This subject  of securing wireless devices conjures up visions of your PC or mobile phone connecting to the Internet through some hotspot at Starbucks. But it is so much more than that. Let’s look at the facts: devices#sthash.eoFY7dic.
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…

790 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