How to make android phone ring? - android

I would like to make a android phone ring through code.
For example a app installed and the use recieves a call a app listens for this. If a certain number calls then a specific ringtone plays. How do i go about make code to make a android phone ring?

Well first of all i thought it was a good question but apparently people dont understand what you are asking. I think that you want to like call the phone you are calling from or somthing like that, i dont know it is possible but heres the tutorial on phone calls, from the official android website:
http://developer.android.com/guide/topics/network/sip.html

A ring is simply a sound file played through the speaker. Read up on how to configure your mediaplayer object to play your required sound through the external speaker.

This is part of the functionality of android anyway! I am positive that this is not possible to do with an android app without modifying the os. Apps cannot initiate incoming calls for security reasons.

Related

Is it possible in android to play an audio file over a phone call and receiver should hear it?

I search about it a lot but got nothing. I just want to know is it possible or not? If yes than how?
No.
The simple fact is the microphone / input audio stream during a phone call is not able to be pre-processed or replaced with another stream of any form.
So simply while one would think its easy to use media during a call, it simply is not possible due to the way the android system processes the audio.

Android WebRtc play dialing sound for outgoing calls

I'm working on a project that involves WebRtc for Android and everything is working fine accept for the fact that I don't know how I can play the standard repeating beep sound when you are waiting for that the person you are calling accepts your call.
I have searched a lot for this but accept for a link that was related to IOS which wasn't very helpful, there was nothing useful.
Does anybody know how I can accomplish this?
AFAIK there's is no special "API to play this kind of sound". It's just like playing any other sound. Asking how to find an "outgoing" rings.wav on the internet, is out of scope for stackoverflow.
If you're looking to generate it, you'd need to specify which sound you want, since there is no "standard" one. The sound varies from market to market. Traditionally even, on old POTS networks, the sound was literally sent from the other side, producing different sounds when calling people in other countries.
Also, "ringing" is an app choice, and out of scope for WebRTC. Most WebRTC apps these days tend to pair people up using "rooms" or similar abstractions, rather than the traditional "pick up!" model.

how to Create a virtual mic in android?

I have following requirements :
When call is received in android phone instead of streaming microphone output I want to stream a recorded audio every time I receive call.
So that it should be like a virtual mic.
Is it possible to do this?
Is there any API/handlers to do it?
Any references?
From what I've seen, there is no dedicated API for this, nor is there any possible way to do this without rooting the Android device, which can be a very long process depending on the device. I don't know much besides that, however, such as how to do this with a rooted device, so you can probably find better explanations of that from another answer or somewhere else online.

Streaming a call voice on android?

After a bit of googling I came to know that recording a call in android is not possible maybe because of some legal reasons, But I want to know whether its's possible to stream the call voice from android, I dont't want to record it, just want to tether it for some functionality requirement..
Thanks in advance...

Is it possible to record calls both sides(mic,speaker) in android?

i'm trying to develop an application to record calls bothside(mic and speaker). I've seen there is one app vrecorder providing this vrecorder for android 1.6.
Now i want to do this for android 2.2 and above. Can i know is this possible with MediaRecorder.AudioSource.
I've read some forums they are saying that there are some issues on doing this.
In Stackoverflow itself several questions are about record voice calls saying that not posible. But these posts are older. Is it possible to record phone calls via an Android App? .
But http://code.google.com/p/android/issues/detail?id=2117 in this discussion they are saying that some issues are there but we can implement.
Atlast, please I need some descriptive answers, that can we record voice calls in android both way (from mic and speaker).
Thanks in advance.
Call recording is not yet possible on Android. The feature request you are referencing is still not resolved.
People that have been able to do call recording use rooted phones with custom kernel.
On stock Android phones, you can only record your voice from microphone, but you can not record the sound of the other party. If you only want to record your voice use android.media.MediaRecorder.AudioSource.MIC

Categories

Resources