Solved

Android Phone call access

Posted on 2012-04-06
2
677 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:
santhanasamy 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Learn new improvements released by Google for Google Calendar. Noted in this article are simple tips and tricks that can make your everyday use of Google Calendar better.
Let Bitmoji into your life. Now is the time to learn a new language of smartphone messaging with this brief introduction.
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now