Android :: How To Stop / Hang Up Outgoing Call?
Jun 22, 2009
I'm just doing an application that controls who to call and how many rings let the call do. For example, to not wake up someone in the morning we only do 3 tones. I'm using the standard BroadcastReceiver method to stop the call from going out. I explain here for the people who want to do it, also.
[ Manifiest ] 1.- You need enough permissions: <uses-permission
android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
To make calls and process outgoing calls.
2.- You need a broadcast receiver that catches the broadcast intent:
<receiver android:name=".receiver.PhoneOutgoingCallReceiver" android:enabled="true" >
<intent-filter android:priority="0">
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter> </receiver>
[Code]
3.- You controls who can call in the:
@Override public void onReceive(Context context, Intent intent) { }
View 7 Replies
Feb 2, 2009
We are new to Android and creating an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application. For now we tried using Intent.ACTION_CALL to use existing activity:
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse ("tel:" + phoneNumber)); startActivity(callIntent);
But we can't figure out whether it's possible to stop launched by this default Call activity. Is it possible? If yes, how? If not, what should we use to write our own Call activity to make a very simple call? We would want this activity only to be used by our application, not for all outgoing calls.
View 3 Replies
View Related
Mar 1, 2009
I am developing an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application.
For now I tried using Intent.ACTION_CALL to use existing activity:
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber));
startActivity(callIntent);
But stopping the call seems to be disallowed by default API. For example, enabling airplane mode during the call. Just an example, this hack didn't work for me.
View 9 Replies
View Related
Jul 19, 2010
This has happened to me several times in slightly different cases. Several times I've mistakenly placed calls to the wrong people (due to just messing around with the phone).
In a panic, I pressed the "back" button thinking that it will cancel the call. It didn't. I also tried the "home" button. Also no good.
I had to drag down the notifications bar to see the phone call in progress and finally access the red Hang Up button. That worked. The problem is that is is SLOW. And worse, one time the phone would not respond to the button press until after several tries (maybe the CPU was busy on something).
Anycase, that would appear to be a major problem with all these touchscreen-only smartphones - lack of a physical Hangup button.
Is there any workarounds to this? Perhaps some sequence or combo of the existing physical buttons to forcefully hangup an errant call?
View 1 Replies
View Related
Nov 30, 2010
i've just bought a xperia x10 mini pro. after reading the entire user guide, i still can't find the "counter" for total outgoing call time and outgoing sms. Anyone knows where to find this in the phone? previously when i was just W910i, this function was easily located. Someone pls advise and provide some guidance.
View 3 Replies
View Related
Jan 19, 2009
I can use this code make outgoing call.
Intent dial = new Intent(Intent.ACTION_CALL); dial.setData(Uri.parse("tel:5556") );
context.startActivity(dial);
But how to detect call pick up the call or refuses to answer?
I tried PhoneStateListener but not working.
View 2 Replies
View Related
Feb 14, 2010
I have an Eris and my recent call log on my phone displays my outgoing calls as Unknown even if they are saved in my Google contacts. I have the outgoing calls set to go through GV option selected on the phone and I'm not sure what's going on. The contact is displayed for a second and then reverts to Unknown. When I add the unknown number to my existing contacts it works and displays properly, but when I call the same number back from my contact list, it shows up as unknown. My incoming calls and missed calls all show up with the proper contact info, so it seems to just be a problem with my outgoing calls. Does anyone know what's going on or how to fix this?
View 1 Replies
View Related
Feb 23, 2010
I've spend the last couple days looking for a way to hang up a phone cal via the API. I'm guessing for some "security" reason that Google does not allow this. Not being one to give up yet...is there any undocumented way to hang up a phone call? Of course the real solution would be for Google to add a HANG_UP_CALL permission and expose the hangup() method to the public API, but it doesn't appear that will happen.
View 2 Replies
View Related
Jan 14, 2010
I am trying to hang up an incoming call with injecting KeyEvent, however, got error below:
WARN/WindowManager(61): Permission denied: injecting key event from pid 296 uid 10024 to window Window{43d37708 paused=false} owned by uid 1001 java.lang.SecurityException: Injecting to another application requires INJECT_EVENT permission
Though I've added android.permission.INJECT_EVENTS to the project, still the same.
How could I deal with this situation, I just want to stop the call.
View 2 Replies
View Related
May 3, 2010
"How do you hang up incoming calls (in Android of course)?"First, I know this question has been asked and answered several times, and the response is always "you can't". But if we look in the market we get a few applications (all private software, no access to the source code that do this action, such as CallFilter, Panda firewall and others.So does somebody know how these apps do the hang up action, (or terminate, or disconnect or whatever you call it)?And other question, if the first don't get a response.. does somebody know how send an incoming call to the voice mail?Of course, all questions are about how to do it programmatically. So with the voicemail question I know there's a flag in contacts that is used for that, but like I said, I'd like to know the programmatical way.
View 2 Replies
View Related
Apr 14, 2009
When I'm testing the functionality of the headset button in a call, it just muted the mic, didn't hang up the call. And if there is no call, when I press the button, there will be a song playing, so I think the keycode is correctly reported. There maybe some code I need to add?
View 3 Replies
View Related
Nov 11, 2009
Sometimes after I am done with a call the screen is black and I click on the screen to get it to light up so I can end the call with no results. I than push the little top button to turn on the phone by than the call has confused the voicemail I am leaving and I have to redo the message. I am leaving or push 1 or 2 go through all of that. Anyone else with the black screen and having to "unlock" the device issues? I want to never push that button on the top unless I lock it.
View 2 Replies
View Related
Jun 2, 2010
One of my clients wants a code method that returns a boolean. True if the Android phone has hardware red/green call/hang up keys and false if it does not.But not in a key press event as in the code snippet above. He needs to determine this up front if a phone has physical red/green keys or virtual ones.Is it possible and if yes can someone provide a code sample to achieve this?
View 1 Replies
View Related
Sep 16, 2010
Hours later and almost out of power (started out with 75%), I turned the phone off. The email I received had 29 attachments and was 1.9 MB in size, and it loaded fairly quickly. But when I tried to forward it, I gave up after letting it grind away for a few hours. Couldn't figure out how to cancel an out going email, so I turned the phone off, and back on again. That stopped it from forwarding and placed it in the out box. I guess upload speeds with 3G really do suck. I can't wait for 4G. Turning the phone on and off did not stop it from trying to forward. Need help trying to figure out how to stop an outgoing email.
View 4 Replies
View Related
Mar 23, 2009
I want to listen to outgoing call. Below is our manifest.xml and Listen.java. But when a outgoing call is doing, I got the following waring, and the receiver got no response. Would you like to help me out. Thank you very much.
03-23 16:05:09.227: WARN/ActivityManager(79): Permission Denial: broadcasting Intent { action=android.intent.action.NEW_OUTGOING_CALL (has extras) } from com.android.phone (pid=193, uid=1001) requires null due to receiver com.android.lianyun/com.android.lianyun.Listen import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log;
Code...
View 2 Replies
View Related
Oct 18, 2010
I would get outgoing call duration a call, I thought to get when the persone to the other side answer my call, but with PhoneStateListener we can get the state of a call, but PhoneStateListener changes state to CALL_STATE_OFFHOOK immediately when the outgoing call starts and not when the person to other side answers, so i can't get the effective time of call during a conversation.
View 1 Replies
View Related
Aug 3, 2010
Before I upgraded when I clicked the button on my ear buds with a Mic it would hang up the call I was on. Now when I click it it mutes the call. So I have to take my phone out and manually hang the call up.
View 1 Replies
View Related
Oct 18, 2010
Just bought myself the HTC desire HD 2 days ago and couldn't be happier except for one thing. Whenever I make or receive a call everything works but I can't hang up...the phone goes dead but the call is connected until the person calling/being called hangs up, and then I have to take out my battery to be able to use my phone for texting/apps etc, everything else works fine its just the screen refuses to light up again after I take it away from my ear.
If anyone knows what could be causing this or a fix it would be greatly appriciated.
View 1 Replies
View Related
Oct 14, 2010
I havn´t been able to find out, how to detect the event (if there are any), when an outgoing call is answered - does anybody know how to do this?
View 3 Replies
View Related
Oct 20, 2009
I have seen, using search, that this question has been asked already in this forum, without answer. To ask again: How can I detect when outgoing call has been accepted ?I can detect when outgoing call has been started using BroadcastReceiver. I can detect when call has ended using PhoneStatusListener. But there is nothing more except this two notifications.Internal phone application detects this event, my HTC magic (running standard cupcake) vibrates shortly when other party accepts call.So is it possible to detect this event in 'cupcake' or 'donut'. If not where can I post feature request to android OS developers to include this notification in next API revision.
View 2 Replies
View Related
Feb 12, 2010
Once ACTION_NEW_OUTGOING_CALL has been broadcasted, I need to capture the following event of the other party answer. Could you advice on how to achieve that please? I know it is possible as the android dialer app changes the green android icon to the person's photo excatly when they pick up. I've had a look at the source of the app on Android handling the outgoing calls.
View 1 Replies
View Related
May 20, 2010
I noticed in the class TelephonyManager there are CALL_STATE_IDLE, CALL_STATE_OFFHOOK adn CALL_STATE_RINGING. They seem to be used for incoming calls.What I actually want to do is to be notified when an outgoing call is made, is received, or timed out. How to do that?
View 2 Replies
View Related
Oct 12, 2009
Actually I was working to get duration of outgoing call.But I don't find any way of doing this.Then I decided to get the details of outgoing call from call log.
But my code works only for Activity.I want this to work with Services because I want to get the details related to outgoing call in background using services.What should I do to get these details in background.I currently implement it for Activity.Here is my complete code...
View 9 Replies
View Related
Aug 6, 2009
I want to record the outgoing and incoming call. Can some one tell me. Is it feasible or not ?
View 4 Replies
View Related
Mar 29, 2010
I am new to Android. I would like to create an application that will hang up an outgoing call after it has been ringing for several seconds.
Based on what I have read in the discussions so far, we can abort a call that has just been initiated by using setResultData(null) on the BroadcastReceiver. This just means we can effectively censor calls only. Not exactly what I am trying to achieve.
If the ability to abort a call after it has started ringing is not supported by the SDK, what other means is there for me to achieve this? Are there any internal functions that I can use?
View 2 Replies
View Related
Nov 8, 2010
Does the Dinc have a way of ending the call automatically when the other party hang up without me having to physically push the end button. I guess this is useful when talking while driving and you know the phone will end the call when you set it aside instead of having to look on the screen. Is there a way to display while calling if the call is connected or the other party still has not picked up the phone.
View 7 Replies
View Related
Sep 4, 2010
My mini is on a call and will not disconnect. I can also not turn the phone off, is there a way I can reset the phone?
View 4 Replies
View Related
Aug 25, 2010
When on a phone call outdoors and I want to hang up, I pull the phone away from my face and the display stays black. The proximity sensor is not sensing that I've moved it away from my face. I can't hang up the call. If I hold the phone above my head with the display facing toward the ground the display comes right back.
It works perfectly indoors. I've compared this to another phone and the other worked perfectly. I've read that the UV rays from the sun can interfere with the proximity sensor. Verizon does not recognize this as a problem but if you Google it you will see this problem goes way back.
View 4 Replies
View Related
May 15, 2010
I thought I had seen some application where you can call someone and have it go straight to their voicemail. I've been looking around and haven't been able to find it. Does anyone know if such an app exists.
View 4 Replies
View Related
Aug 22, 2009
Is it possible to get a handle on the outgoing data (voice) stream during a call? I'd like to be able to intercept the outgoing data, alter it slightly, then write it back out.
View 15 Replies
View Related