0

In my android app, before a call is picked up, I want to just replace the call beeps with an audio file? and once the call is picked up, I would turn off my audio file.

Please someone help me out in this issue!

P.S: The purpose of this feature is just to replace the annoying call beeps before the receiver on the other end picks up the call.

  • Please put your question in more clear way. – Panda May 30 '16 at 19:04
  • How far you are progressed?? – Madhukar Hebbar May 30 '16 at 19:24
  • @M.S.P please read out the question again, I've just edited it. – Taimur Siddiqui May 31 '16 at 17:42
  • @MadhukarHebbar we have just started to develop this feature – Taimur Siddiqui May 31 '16 at 17:47
  • @TaimurSiddiqui as per my knowledge, it's little difficult to find out the time when the user picks the call where there is only state available is `CALL_STATE_OFFHOOK` which will get invoked when the call is being started. – Madhukar Hebbar Jun 01 '16 at 05:14
  • @MadhukarHebbar , that's pretty hopeless for me.... so there is no workaround even to play an audio file during call beeps without knowing about the CALL_STATE Lets say, whenever any user dial the mobile number to start a call, my app would invoke and play the audio file through mobile phone speaker without worrying about when the receiver picks up the call because I guess once the receiver picks up the call, the audio file would automatically be turned off (according to android APIs)? What do you think? – Taimur Siddiqui Jun 01 '16 at 10:21
  • @TaimurSiddiqui `once the receiver picks up the call` <- this state is very difficult to find, for the rest of the thing you can do it very easily. – Madhukar Hebbar Jun 01 '16 at 12:40
  • @MadhukarHebbar So could you please tell me how to do 'the rest of the thing' ? More specifically if you can tell me in terms of android code ? Because I can't figure it out that how to use mediaplayer or audio manager api in my code? – Taimur Siddiqui Jun 01 '16 at 14:13
  • @TaimurSiddiqui Have you seen [this](https://developer.android.com/guide/topics/media/mediaplayer.html)?. It's clearly mentioned that > You cannot play sound files in the conversation audio during a call. – Madhukar Hebbar Jun 02 '16 at 05:07
  • 1
    @MadhukarHebbar yes I've seen this, that's why I'm finding some alternatives to do this, Thanks anyways for your time and help! – Taimur Siddiqui Jun 02 '16 at 06:43

1 Answers1

0

This person is playing an audio file during the call, please follow the link, My streaming audio player continues to play during a phone call - cannot make it stop! (Android)

Community
  • 1
  • 1