Hi i want to make an android app in which when an incoming call come.it will be received and play an mp3 file in the sdcard.i know how to receive the intent of incoming call and pick it up.but in outgoing i have to play mp3 file please suggest some good reference for implementing it.
Related
We have a custom receiver that is using an HLS stream with segmented webvtts. Is there a way on Android to obtain the text tracks that were loaded on the receiver?
It seems that
MediaInfo#getMediaTracks
only returns tracks that were provided to the receiver through the load method.
Is using a custom channel the only way to do this? https://developers.google.com/cast/docs/android_sender_advanced#add_a_custom_channel
I have googling about a way to somehow divert an incoming call(RINGING/OFF-HOOK state) to listen to an audio file. So far experts have commented that it is not possible to play music while in call. But is it possible, to divert a caller to a music file so that only he can listen to it ? Here I am referring to a HOLD kind of scenario. Please suggest.
I want to play one Audio file continuously that is being downloaded. Please note that there is no file of fixed size being sent from other side. It's like data is being send from one side and on the other side data is being received. I just want to make this data keep on playing (audio) until no further data is available.
Any suggestions on how to play audio data that is being sent continuously as soon as you start receiving it?
I want to receive incoming call automatically that was I done already now I want to play my own created sound to my caller rather than android will use its default mike..
Can is it possible to play our own sound after receiving incoming call?
I refereed this. Can anyone tell me is it possible now?
I searched lot related to this topic but still I am not able to find something useful.
If anyone know about this then please help me..
Thanks in advance.
I found this may be helpful for you
quote from: How to automatically answer call and play prerecorded sound out to the caller and DTMF on Android
"No, sorry, Android has no access to the in-call audio stream. Closest thing is if the device is in speakerphone mode, you can blend your audio into what the speaker plays, which may get picked up by the microphone."
As described here (http://www.krvarma.com/2010/08/detecting-incoming-and-outgoing-calls-in-android/), you should be able to detect this:
To detect the incoming call, we register a BroadcastReceiver for the
action android.intent.action.PHONE_STATE. This will be broadcasted
when there is a change in phone state. The receiving intent will have
an extra string variable TelephonyManager.EXTRA_STATE which describes
the phone state. If this state is TelephonyManager.EXTRA_STATE_RINGING
then there will be another extra string variable
TelephonyManager.EXTRA_INCOMING_NUMBER. This variable contains the
incoming phone number. Note that this variable will not be present
when the state is not TelephonyManager.EXTRA_STATE_RINGING.
I am going to create call record application, There I need to play minute and recording notification sound. It should here to caller and receiver two parties. Is there any good example for such application?
Thank You.
I am going to create call record application
That is not possible on Android. Android SDK applications do not have access to the in-call audio.