Solved

Android Phone call access

Posted on 2012-04-06
2
688 Views
Last Modified: 2012-04-08
Hi
i want to access the voice call when it is still on i.e. when a user is still on voice call using normal gsm/cdma call for a academic project.I have gone through sdk from android api but couldnt get any info to directly access the call details...

is there a class to directly access the voice call during when it is active
0
Comment
Question by:darien_software
2 Comments
 
LVL 8

Accepted Solution

by:
Santhana earned 500 total points
ID: 37818567
Hi  darien_software,

1)  is there a class to directly access the voice call during when it is active

Actually I did n't get your question ...what do you mean by accessing voice call ...


But through TelephonyManager we can get the Phone call state changes....

http://developer.android.com/reference/android/telephony/TelephonyManager.html

TelephonyManager telManager =  (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE);
telManager.listen(mCustomPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
......
......
You can get the call back here......

private final PhoneStateListener mCustomPhoneStateListener = new PhoneStateListener (){
         public void onCallStateChanged(int state , String inComingNumber){
                if(state == TelephonyManager.CALL_STATE_IDLE){
                        // here you can kick off a process that you wants...
               }
        }
}
0
 

Author Comment

by:darien_software
ID: 37821639
hi sanathanasamy

as both my Q are relating to same topic..we will discuss more about this in this Q to avoid confusion..hope it ok
http://www.experts-exchange.com/Programming/Languages/Java/Android/Q_27665575.html#a37821627
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 29
iPad Testing Issue 4 55
QQ problem 22 43
OneNote in Android phones cannot 'pinch' to re-size to fill screen 8 33
The case of the missing phone talks about the way a small electronic gadget (the mobile phone) has penetrated into our lives and has made us addicted to it.
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

840 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