how to identify incoming call using android?
I want to record incoming call,any body knows please give some idea about that,other wise give some idea about How开发者_高级运维 to know about incoming call,
Thanks All
It isn't possible to record the call with the phone itself unless you are routing the call through a service that lets you record the call (see Google Voice, for example).
ACTION_ANSWER for when a call is answered.
I believe you should write a broadcast receiver i.e. make a class and extend it from BroadcastReceiver
public class MyCLass extends BroadcastReceiver {
// functions here
}
In the manifest.xml file write
<receiver android:name="MyClass">
<intent-filter>
<action android:name="android.intent.action.ANSWER">/action>
</intent-filter>
</receiver>
This will call your MyClass where ever a call will be received
Sorry, it is impossible to record a call. The streams are in the lower level operating system and don't transpire to the application level.
精彩评论