Android :: No Intent To Terminate (end) Call Programmatically
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
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
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
Feb 9, 2010
I need my activity to handle HOME button press with a receiver programmatically, but the event is not firing. I can,however, successfully register and capture this intent filter if I declare it in a manifest.xml activity section.Does anyone know why this doesn't capture the home button click?By the way, I tried working around this by creating another activity and specifying its intent filter in the manifest. I set the activity enabled="false" in the manifest but I couldn't figure out how to enable that activity at run time. Bottom line, I only want to register the home button intent filter for my application only when my application is running, and I can't figure out how to do that.
View 2 Replies
View Related
Feb 9, 2010
I am trying to capture my activity to handle HOME button press with a receiver programmatically, but the event is not firing. I can, however, successfully register and capture this intent filter if I declare it in a manifest.xml activity section.
Here's the code for the receiver:
CDE:...............
I put a breakpoint here to see if this gets called } };
View 2 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
Apr 9, 2010
I want to answer a phone call. I found the intent android.intent.action.ANSWER but it seems that the only effect that I obtain is an ActivityNotFoundException. Why? Is it a deprecated intent? How can I achieve answer? I have also heard about the "telnet technique". What is that?
View 2 Replies
View Related
May 4, 2010
I know this has been asked before, but at this time the answer of the post is not true.
http://stackoverflow.com/questions/2610587/how-to-programmatically-answer-a-call
Vringo and other apps does answer the phone by pressing a button on their app, so there must be a way to do it.
Anyone has a suggestion?
View 1 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 1, 2009
I'm rather new to Android, so please bear with me. I'm developing an application running a service in the background. The service is ONLY supposed to run when requested somewhere in the UI. The service must be able to be stopped through the UI as well. At the same time, while running, the service must be able to pick up intents such as "intent.action.DATA_SMS_RECEIVED" and "intent.action.NEW_OUTGOING_CALL".
View 2 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 12, 2010
I am trying to locate the intent to load the call log view , does android platform provide that out of the box? the functionality that i am looking is just like picking a contact from address book , you can do that by using intent.ACTION_PICK and using the people content URI Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); It 'll show all the contacts of the system and on selecting one it 'll return the data URI of that particular contact by using callback if you start it by using startActivityForResult.
View 4 Replies
View Related
Jan 7, 2010
How to invoke call in android using ntent?...
View 2 Replies
View Related
Aug 25, 2010
b = this.getIntent().getExtras();
s = this.getIntent().getStringExtra("DEFAULTTEXT");
public void onClick(View v)
{
String a = "http://152.226.152.156:1010/jsp-examples/test1";
URL url = null;
HttpURLConnection httpurlconnection = null;
try {
url = new URL(a);
httpurlconnection = (HttpURLConnection) url
.openConnection();
httpurlconnection.setDoOutput(true);
httpurlconnection.setRequestMethod("POST");
Toast.makeText(Booking.this, a, Toast.LENGTH_SHORT).show();
Toast.makeText(Booking.this, "Toast1", Toast.LENGTH_SHORT).show();
ObjectOutputStream dos = new ObjectOutputStream(httpurlconnection.getOutputStream());
SendVEctor.add(txtArrivalTime.getText().toString());
SendVEctor.add(txtFerry.getText().toString());
SendVEctor.add(txtStatus.getText().toString());
SendVEctor.add(txtDestination.getText().toString());
SendVEctor.add(s.toString());
dos.writeObject(SendVEctor);
dos.close();
s would be my intent and how would i put it into my SendVEctor?
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
Jan 27, 2009
I'm trying to write a convenience app that needs to bring up the active dialer for a connected call, but I'm having issues after trying a couple of approaches.
ACTION_DIAL - I've tried starting a new dialing activity and while this brings up a new dialer, it's not connected to the existing call so pressing buttons on the new dialer produces no dial tones on the receiver's end.
ToneGenerator - Created my own little dialer activity and hooked up ToneGenerator calls in response to button clicks, but then found out that it only generates tones in the dialer's earpiece and not on the receiver's side.
So... Is there any way to programmatically send dial tones to an active call? Any way to bring up the dialer of the active call and not the dialer for a new call?
View 4 Replies
View Related
Aug 16, 2010
I want to create 4(four) tab, on click of each tab i need to call some activity through Intent, upto this is OK, but without replacement of whole page, I would not like to replace tab, tab will remain (unchanged) same for each a every layout/activity, i.e, only lower part (content) parts will change.
View 3 Replies
View Related
Mar 19, 2010
I have an already built application and I want to add a feature that has to be started when a call ends.
How can I achieve that?
I thought that declaring in my manifest something like this
CODE:............
Could be enough, but what kind of intent I have to put on the filter?
Looking in the documentation I found only the intents that detects when a call is started.
View 2 Replies
View Related
Oct 12, 2010
I am trying to locate the intent to load the call log view , does android platform provide that out of the box? the functionality that i am looking is just like picking a contact from address book , you can do that by using intent.ACTION_PICK and using the people content URI
Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
It 'll show all the contacts of the system and on selecting one it 'll return the data URI of that particular contact by using callback if you start it by using startActivityForResult. could we do the same with call log as well is their any intent for that?
View 2 Replies
View Related
Jun 3, 2009
is it possible to start a call from the android browser, let's say by clicking a link in an html file or with javascript after a button click? maybe with help of the gears api? i'd appreciate any hints, maybe an example of how to embed the intent in the html-file/in javascript.
View 3 Replies
View Related
Sep 23, 2010
I need to put a Notification in the Status bar while my app is running, but I don't want it to call back to my Activity if selected. Its meant to just be info to the user that the app is running - basically a reminder in case they press the home button and minimize it.
View 1 Replies
View Related
Jul 7, 2010
So I can display Android's contact selecton activity by calling Trouble is onActivityResult is only available when I am calling from an Activity myself. If I am in a DialogPreference for instance how would i get at the selected contact because I do not have an onActivityResult to override?
View 1 Replies
View Related
Jan 27, 2010
Has anyone found a way to catch outgoing calls from the Htc Hero Dialer?I currently use the NEW_OUTGOING_CALL intent in my app and this works for the standard Android dialer but not for the Htc Hero one.The hero dialer seems to not fire that specific intent.Is there any other way to achieve this?
View 2 Replies
View Related
Mar 13, 2010
I have only .APK file of PDF Viewer and my requirement is to use pdf viewer for reading document called through Web API . Is there any possibility to integrate these two in same package apart from source code?
View 1 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
Aug 27, 2010
I got one question regarding the intent action "ACTION_CALL". What is the correct way of getting back to the own application/activity after the user ends the call? The only way that came to my mind uses a PhoneStateListener in a background services that waits for the CALL_STATE_IDLE event starting up the application again. But I am not quite sure if that is the correct/intended way of using the intent.
View 1 Replies
View Related
Oct 16, 2010
In my very simple app (based on the default Hello World app but with a button added) I try to open one of my phone's (a SE X10 Mini) preinstalled activities, like this:
Intent calendarIntent = new Intent();
calendarIntent.setClassName("com.sonyericsson.calendar","com.sonyericsson.calendar.dayview.DayActivity");
startActivity(calendarIntent);
However, it does not work, I get the following error in the log:
E/AndroidRuntime( 2215): java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.sonyericsson.calendar/.dayview.DayActivity } from ProcessRecord{302cf238 2215:com.klibb.quickappointment/10079} (pid=2215, uid=10079) requires null
E/AndroidRuntime( 2215): at android.os.Parcel.readException(Parcel.java:1246)
E/AndroidRuntime( 2215): at android.os.Parcel.readException(Parcel.java:1234)
E/AndroidRuntime( 2215): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1157)
E/AndroidRuntime( 2215): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1449)
E/AndroidRuntime( 2215): at android.app.Activity.startActivityForResult(Activity.java:2661)
E/AndroidRuntime( 2215): at android.app.Activity.startActivity(Activity.java:2705)
E/AndroidRuntime( 2215): at com.klibb.quickappointment.QuickAppointmentActivity$1.onClick(QuickAppointmentActivity.java:25)
Is there anything I can do about this or is this type of code a no-no? When searching the web I see people changing the intent filters in what I assume is their own app, but I obviously cannot change anything in a preinstalled app.
View 1 Replies
View Related
Aug 26, 2010
Is it possible to call the built-in Video Recorder in Android through an implicit Intent? I did some search but haven't figured out yet.
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