Solved

Android Phone call access

Posted on 2012-04-06
2
695 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run an android app on IOS 3 80
Can't send e-mail from Iphone 10 78
How Do I Find Out Which Device Sent An iMessage 2 74
How do I get an iPhone 6 to be used for audio notes? 4 30
Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
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…

752 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