Know when Outgoing Call has been answered or whatever state

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


Sponsored Links
 Hi,

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

Regards

Mark

--~--~---------~--~----~------------~-------~--~----~



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)
( 
 http://developer.android.com/reference/android/telephony/TelephonyManager.html )

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

--
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. installing .apk file insanity

Here's another one that SHOULD be a no-brainer, but isn't.  Eight
hours of searching on the forums, Google, etc... brings me in circles
back around to very incomplete (and often misleading) information:

Dead end/Question #1:  Downloading via link is not working.

Downloading 3rd party apps is enabled.  When I try to download
the .apk file from the web browser, the Android tells me the file
downloaded, and asks me to install the app.  I click yes, and the
phone doesn't ask me for permission.  The application simply doesn't
show up on the Appliations list.


Dead end/Question #2: Need clear instructions on getting an .apk
installed on the device.

I want to programmatically install an application on the Android by
downloading  the .apk file to the phone.  Forcing the user to accept
the application through startActivity is fine.  I don't need "secret
installs" (nor do I think they're a good idea).

So, using this is fine:

    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("file:///
proper/path/etc/MyApkFile.apk");

Is that even the right way to use Intents to get the .apk file
launched/installed?

When I use it nothing happens.


Dead End/Question #3:

Also, using PackageManager would be good as well, but I can't find ANY
good documentation on how it's used, and NO documentation other than
API reference on IPackageInstallObserver).  What I do find is terribly
incomplete, and includes two year old posts that PackageManager
installs might not be supported.   So, it  took me half a day to
figure out this :

packageManager.installPackage(packagePath);

When I use it nothing happens.  Can't use an observer because the docs
on THAT are lacking as well.




Thanks for any help you can give.

Richard

<venting>

On a related note: I'm very grateful for the Android platform, and
overall it rocks!.  But, having to find basic technical information
through wayward blogs and incomplete documentation has gotten
really .... really .... old.


</venting>




--~--~---------~--~----~------------~-------~--~----~

2. About screen rotation

Hello,

I tried to trace the screen rotation procedure.

I trace from application's andriodmanifest.xml
->ActivityManager
->WindowManager
->SurfaceFlinger
->???(Maybe Skia)
->???(Maybe Display Driver)

Can any experts give me some tips how to trace
after the SurfaceFlingfer?

Does it use Skia to do orientation?
After the skia, will it call display driver for orientation?

Many Many Thanks!!!
--~--~---------~--~----~------------~-------~--~----~

3. opening a file within a service

4. Live streaming of H.264 encoded file

5. Touchscreen not completely working

6. getting around Phoneapp activity 1.1?

7. BroadcastReceiver for data SMS - static works, dynamic does not