I just came to know that it's possible to record call voice (both incoming and outgoing) in android, I want to know about any API or methods which can tether this call voice during a call.
Thanks in advance.
I am sure it is not supported to record a call but just read the below answer.
on the link
i was looking for same thing, i found arguments here pretty intresting and convincing ! hope this helps you
Related
I want to implement a Voip app with SIP protocol. I have managed receive and dialing with the tutorial. The problem I have is, my app will not answer for the incoming call when it is closed. I have tried using services but not helping me solving the problem. I have seen ConnectionService in android documentation, but not clearly explain on how to implement. please give some tips how to solve this. Thanks for your time.
This Android Project created by Aentfs called Phony may help, give a look.
I am trying to add support for bluetooth devices like headsets/headphones/car stereo to my android app which allows user to make SIP/VoIP calls. I am trying to mostly address the requirements of Answering and Ending of calls using button on bluetooth headsets, other buttons/features handling is good to have.
With the search I have done and all the text I have read so far, I have come across the following-
One common way suggested everywhere is registering to ACTION_AUDIO_STATE_CHANGED. But this doesn't really helps me. Intents for it are sent every time the button on Bluetooth headset is pressed And also when we start the ring tone on bluetooth headset.
A very common solution I found was use of Bluetooth Adapter class. There isn't much you could do with it. So again not helpful.
Another approach I came across is the use of Vendor specific headset events. After some efforts I was able to get this working for specific Plantronics Bluetooth headsets. Supporting Jabra is important.
One more approach I came across is binding with IBluetoothHeadsetPhone.aidl, the way the phone app does it. I could find very little information on it, not enough to go ahead and implement any thing.
If anyone has done such things, I think the problem I am facing is not an uncommon one, I just believe it is not documented well.
Any pointer, approach, link would be appreciated.
I will try to add more info as I find any or any other approaches I try. Please ask for details if you need any more on the solutions I have tried. And please suggest changes instead of just flagging the question.
Thanks in adv.
Sorry about the late post. I was able to find a solution for this issue. It is not simple fix.
You need to use ConnectionService from Android telecom framework. Check out this link here & here. After this your VoIP calls will have cellular call like treatment.
How do I play audio file to a call for android?
I want to make some kind of machine answering program. is it possible?
You don't appear to be able to intercept incoming calls.
ETA: er, apparently that isn't true? See:
How to programmatically answer a call
I want to record call from android phone.
I am using android.media.MediaRecorder pckg.
Also used following code:
mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
mrec.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
But I didn't succeed in recording an incoming call.
Can anyone recommend a tested code snippet?
Also,
Is this true?
http://groups.google.com/group/android-developers/browse_thread/thread/c2bc85eb60ae2aa5?pli=1
http://code.google.com/p/android/issues/detail?id=2117#c226
Standard distributions of Android does not support it till now.
You can vote up these if you want:
http://code.google.com/p/android/issues/detail?id=4075
http://code.google.com/p/android/issues/detail?id=2117
It's not a software problem and I don't think the baseband firmware vendors will fix this. Most likely because it's illegal in most western countries to record calls without consent of the other person.
Is there any way I can dynamically generate uplink DTMF tone (ie the receiver hears it)?
When I looked at the android source code I saw a function called startDTMF() which is exactly what I need, but I couldn't find any API that allows me to access that function...
I then thought of using ToneGenerator and tried to inject the sound to the mic stream, and again I couldn't find a way to achieve this...
Any help is appreciated.
Perhaps the android.media.ToneGenerator class in the SDK can help?
tel:1234,123
this can help.
, generates a 4 sec delay so you may use this at places sometimes...
but still we need to get some thing from sdk lets hope Android guys find something up!