2826 shaares
32 private links
32 private links
3 results
tagged
sound
Table of Contents
- Android Sound and Media
1.1. Overview
1.2. Prerequisites - Example for SoundPool
- Thank you
- Questions and Discussion
- Links and Literature
5.1. Source Code
5.2. Android Resources
5.3. vogella Resources
In this article we shall try to listen to the phone state when contacts are calling us.
First of all we need to set our Manifest file to listen to the Phone State, to do that we need to edit our it.
My previous article explains how to use the TelephonyManager. One of the important functionality of TelephonyManager is listening to different phone state events. The method listen(PhoneStateListener listener, int events) is used to add a phone state listener. The first parameter is the PhoneStateListener class and the second parameter is the int value contains various phone state to listen. We can listen for following events: