Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Android Phone call access

Posted on 2012-04-06
2
Medium Priority
?
706 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Santhana earned 1500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
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…

730 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