Android :: How To Hang Up (disconnect / Terminate) Incomings Call?
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
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
Sep 17, 2009
Can any one tell me how can i hangup/terminate call programmatically?With the help of intent.
View 2 Replies
View Related
Jun 3, 2009
Is android supports the terminating the phone call programmatically using either intent or any APi? If not now then can we see one of the above in the future sdks??
View 2 Replies
View Related
Jan 25, 2010
how to disconnect the call(i.e incoming call) programmatically ?
View 3 Replies
View Related
Jan 17, 2009
I am just try to build a small app to black list certain people such that as soon as I recieve a call from them, it gets disconnected.I have written a PhoneStateListener listener but could not FInd any method for doing the same in TelephonyManager class.All I want is a way to disconnect an in coming call.
View 3 Replies
View Related
Aug 30, 2010
I'm using LauncherPro plus and cannot get back to the call screen to disconnect the call, the one in progress, if i leave that screen for any reason like to go to the home screen.If I switch over to HTC Sense I just hit the phone button from the home screen and it takes me back to the call in progress and I see a red 'end call' button.Is there a solution for this problem other than , just don't leave the call screen?
View 2 Replies
View Related
Jul 9, 2010
am trying to disconnect the incomming call. can anybody help me in this
View 6 Replies
View Related
May 28, 2009
I have my G1 connected to a FM transmitter in my car with my bluetooth headset connected. Music has no problem going out the G1. A call comes in and I connect it. After I disconnect the call, the sound does not go out the adapter on the G1, but out the phone's speaker. Is there any setting to make sure the sound goes out the bottom adapter and not the phone's speaker?
View 2 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
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
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
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
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
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
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
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
Sep 12, 2010
Anyone have a problem with not being able to answer the phone or hang it up after a call? Verizon hasn't been able to fix it either.
View 10 Replies
View Related
Jul 13, 2010
His has been one of my biggest problems with blue tooth. I work in the hvac field and love my blue tooth head set. Here is my problem, When I hang up from a bluetooth call my screen automatically comes back on in my pocket. Then I end up with a pocket dial. I can not tell you how frustrating this is. I can not find a setting to solve this problem. If I answer via blue tooth why is my screen coming on after the call.
View 5 Replies
View Related
Apr 16, 2009
I'd like to know how to terminate / kill an APK on emulator. Most times I reinstall the APK, but I was wondering if there is a better way because I simply need to restart my APK...
View 3 Replies
View Related
Oct 3, 2010
I am new with Android, and writting a small application for tracking call events. Every time i try to bind the listner, the os forces the app to close unexspectly. What did i miss? Here is my code:package com.example.helloandroid;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.telephony.CellLocation;
import android.telephony.PhoneStateListener;
import android.telephony.ServiceState;
import android.telephony.TelephonyManager;
import android.widget.TextView;public class helloAndroid extends Activity {
TextView textOut;
TelephonyManager telephonyManager;
PhoneStateListener phoneStateListener;
@Override
public void onDestroy(){
telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_NONE);
}/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Get the UI
textOut = (TextView) findViewById(R.id.textOut);
// Get the telephony manager
telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
// Create a new PhoneStateListener
phoneStateListener = new PhoneStateListener() {
public void onCallForwardingIndicatorChanged(boolean cfi) {}
public void onCallStateChanged(int state, String incomingNumber) {}
public void onCellLocationChanged(CellLocation location) {}
public void onDataActivity(int direction) {}
public void onDataConnectionStateChanged(int state) {}
public void onMessageWaitingIndicatorChanged(boolean mwi) {}
public void onServiceStateChanged(ServiceState serviceState) {
String stateString = "N/A";
switch (serviceState.getState()) {
case TelephonyManager.CALL_STATE_IDLE:
stateString = "Idle";
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
stateString = "Off Hook";
break;
case TelephonyManager.CALL_STATE_RINGING:
stateString = "Ringing";
break;} textOut.append(String.format("
onCallStateChanged: %s", stateString));
} public void onSignalStrengthChanged(int asu) {}
}; // Register the listener with the telephony manager
telephonyManager.listen(phoneStateListener,
PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR |
PhoneStateListener.LISTEN_CALL_STATE |
PhoneStateListener.LISTEN_CELL_LOCATION |
PhoneStateListener.LISTEN_DATA_ACTIVITY |
PhoneStateListener.LISTEN_DATA_CONNECTION_STATE |
PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR |
PhoneStateListener.LISTEN_SERVICE_STATE |
PhoneStateListener.LISTEN_SIGNAL_STRENGTH);
View 1 Replies
View Related
Jul 30, 2009
Is it possible to terminate an Application? I downloaded Advanced Task Manager, as i could not find a normal way of doing it!
View 9 Replies
View Related
Mar 2, 2012
Is there a possible way to completely terminate app on home button press? Because everytime my friends use my phone they didn't realize there is a back button.. So they just presses the home button like they were using idevices.. This would hog the memory with the running apps and i have to constantly close them everytime they finish playing.. ICS does have this feature but im running GB atm..
View 4 Replies
View Related
Jun 13, 2010
I'm developing a program in which, from an Android Phone, I have to connect as a client to a Bluetooth medical sensor. I'm using the official Bluetooth API and no problem during connection (SPP profile), but when I end the socket, the sensor is still connected to my phone (although I have close the connection).
Are there any way to make a Bluetooth disconnection? I think there is an intent called ACTION_ACL_CONNECTED, which does that. Can anyone explain me how to use this?code...
View 4 Replies
View Related
Aug 18, 2010
Currently I have MSN talk on my htc evo. The problem is that when I turn off the screen the messenger will sometimes disconnect. Is there anyway to prevent it from disconnecting or is there an app that stays on always?
View 3 Replies
View Related