Know when Outgoing Call has been answered or whatever state

by Mark Ellul » Thu, 10 Sep 2009 01:07:58 GMT

Sponsored Links

I am wondering if its possible to know when an outgoing call (made by
an Intent) has been answered?

If so, any pointers would be appreciated




Know when Outgoing Call has been answered or whatever state

by Roman ( T-Mobile USA) » Thu, 10 Sep 2009 03:48:23 GMT

 The current call states which you get on SDK level are

public static final int CALL_STATE_IDLE

Device call state: No activity.
Constant Value: 0 (0x00000000)
public static final int CALL_STATE_OFFHOOK

Device call state: Off-hook. At least one call exists that is dialing,
active, or on hold, and no calls are ringing or waiting.
Constant Value: 2 (0x00000002)
public static final int CALL_STATE_RINGING

Device call state: Ringing. A new call arrived and is ringing or
waiting. In the latter case, another call is already active.
Constant Value: 1 (0x00000001)
( )

It would be nice if the Android SDK could offer a better telephony

Roman Baumgaertner
Sr. SW Engineer-OSDC
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


Sponsored Links

Other Threads

1. AlertDialog

I use AlertDialog.Builder to build a dialog...

but I need to override the onBackPressed() button.

so does that mean that I cannot use the builder -
would have to create a sub-class...etc.


2. Ho to write files to internal or external cache directory?


I want to write my cache files into external cache directory. But I
can't to create cache path

I check that external storage exists
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
 File path = new File(this.getExternalCacheDir(), "");
 String s=path.getPath();
 // result -> s= /mnt/sdcard/Android/data/;
 // than I want to create full path and get false.
 Boolean bmkdirs=path.mkdirs();

I have permission  in manifest <uses-permission

What's wrong? Hot to solve this issue?


3. Sha Sanyo Zio

4. Trouble with bluetooth pairing my Samsung Galaxy Tablet with my PC

5. Ada yang Jual Samsung Nexus S....?

6. Handling orientation changes with an Alarm

7. Upgrade O1