Android :: How To Retrieve Outgoing Number
Apr 28, 2010I want to capture Outgoing call numner. i'm using the BroadCastReceiver. but every time it returns a blank String for the number. it works fine for the incoming number.
this is my code...
I want to capture Outgoing call numner. i'm using the BroadCastReceiver. but every time it returns a blank String for the number. it works fine for the incoming number.
this is my code...
Need to know this so that i could send DTMF and that is going to be my second question!
View 1 Replies View RelatedFirst, just let me apologize if this has been answered before, but I feel like I'm been all over the net to find the solution to this.
What I'm trying to achieve: An "outgoing call" BroadcastReceiver which listens for "NEW_OUTGOING_CALL" intents. Since the application is only suppose handle certain predefined phone numbers the receiver need to check the outgoing phone number, and here lays the problem.
The problem: When running on emulator or placing a call through the People/Contacts application on HTC Hero everything works just fine and the broadcastreceiver receives the "NEW_OUTGOING_CALL" intent. However, when running through the dialer on HTC Hero (which is htcDialer and not the default android dialer) the "NEW_OUTGOING_CALL" intent never seems to be fired and therefor the receiver never gets the outgoing phone number. I've tried listening to PHONE_STATE changes, but then I haven't found any way of retrieving the phone number.
The question: Is there any way to get the outgoing phone number on HTC Hero (sense) when using htcDialer?
I want to know how to use the setResultData() in worker thread
1. Registered a broadcast receiver for this intent "android.intent.action.NEW_OUTGOING_CALL"
2. So using "intent.getStringExtra", i got the user dialed number.
3. After that i need to do some database operation and after that i have to change the user dialed number.
4. Using setResultData(), i will update the dialed number.
here i want to do the database operation in worker thread instead of doing it in OnReceive() of BroadcastReceiver.So from the worker thread how can i use the setResultData()?
I would like to retrieve the name of a contact associated with an incoming telephone number. As I process the incoming number in the broascastreceiver having a String with the name of the incoming caller would help my project greatly. I would think this involves a query using the sql WHERE clause as a filter, but do I need to sort the contacts? An example or hint would be of great assistance.
View 1 Replies View RelatedI am trying to get the contact's phone number after I have retrieved their ID number from the built-in activity. However, whenever I query the database using the cursor in my code below -- I get zero rows returned even though there is a mobile number for the contact I have selected. Can anyone point me in a better direction or show an example of how to get the contact's phone number AFTER getting their userID?
My code:
private Runnable getSMSRunnable() {
return new Runnable() {
public void run() {
Intent i = new Intent(Intent.ACTION_PICK,
ContactsContract.CommonDataKinds.Phone.CONTENT_URI);
startActivityForResult(i, CONTACTS_REQUEST_CODE);......................
I would like to retrieve the incoming call's phonenumber and do something with it.Could you please help me because I can't find any information about this.Where do i start and how do i get hold of the phone number?
View 3 Replies View RelatedAndroid:how do i retrieve the contact photo,name,number from the address book and display it using a list view
View 2 Replies View RelatedI have a application which will retrieve all the contact details and will display all the available Contact Names in a SimpleCursorAdapter. so once user select a particular name number will be displayed. which works fine. but now i want to display HOME and WORK numbers if available. how can i achieve this?
View 2 Replies View RelatedI am wondering if it is possible to retrieve device's phone number via the Android API(specifically 1.5 API).
View 1 Replies View Relatedi got a htc inspire 4g running absolution 3.7 (based on cm7). someone called me on my phone yesterday and had the number on my call log.. i didnt save it. by accident, i deleted the number from my call log. is there any way to get it back? is it still stored in my phone?
View 4 Replies View RelatedI deleted my call logs Monday. I needed space on my phone. Didn't think I'd need those logs anymore. But we were expecting mail (snail) from a travel company through which we are taking a trip to Oregon and it hasn't come. We don't know their name (forgot) but I had a call from them and made a call to them a week or four before I cleared the call logs. If there was any way to get them back, I could get their number.
My carrier is Solavei (on the T-Mobile network) and they do not yet have detailed call logs to see in Activity online and it's all online. I can't use them to find the number.
I need to use a unique ID for an Android app and I thought the serial number for the device would be a good candidate. How do I retrieve the serial number of an Android device in my app?
View 3 Replies View Relatedi'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 RelatedI would like to forward all calls to my number on to the new predefined number automatically. Is it possible to forward incoming call? Probably it is possible for Froyo at least. I found application called Easy Call Forwarding. But many people reckon it dosen't work actually. We can notice forwarded call by onCallForwardingIndicatorChanged() from PhoneStateListener but I have no idea how to set forwarding mode.
View 1 Replies View RelatedGoogle Voice Blog: Upgrade to a Google Number
View 4 Replies View RelatedMy son decided to lock his tablet with a random number he plucked from the universe! one that he can't remember! I'm pretty sure it's a MID here is the link to where I got it from. 8G 7" Android Tablet 4.1 Dual Cam Keyboard Case | Trade Me. I have tried all the different power volume button combos that were suggested on web, also have tried downloading the program to my pc to share info with the tablet, but the information sharing must not be turned on in the tablet, as when the device showed up in my computer it was empty! Where I purchased it from will send me a Getroot, but I have to pay and I'm not sure if this will even work!
View 1 Replies View Relatedit is opening phone contacts and when i choose one contact i can get all detail of the contact but not getting the number type of numbers; more specific >> if the user have four numbers, i can get all number but not getting number type of these numbers i.e. HOME,WORK,MOBILE)
View 2 Replies View RelatedI've experienced two problems with Google Voice that are causing me to get charged minutes I wouldn't usually get charged. If I can't solve them, I'll have to go back to using my Verizon number. First, let me say that I'm using a new Google Voice number that isn't Verizon cell phone number or any other preexisting number. Second, my girlfriend is on my family plan, but she doesn't have GV yet. We're using the 700-minute plan, so we don't have a friends circle.
Problem 1: When I call my girlfriend's Verizon wireless phone using the GV on my Verizon phone, I get charged, and when she calls my GV number on my Verizon Wireless phone from her Verizon wireless phone, she gets charged. We don't cash in on our free in-network calling. I know, this should have been obvious, but it just never occurred to me until after I looked at the bill. I'd be able to work with that, though, and just select "Call without using Google Voice" or whatever when calling her if it weren't for the second problem. When people call my Google Voice number, I get charged when I don't answer. Usually, it's just a one-minute charge, but sometimes it's two or three minutes (don't know why). With anything less than an unlimited plan, minutes count. Not good.
Basically, i use my personal cell phone for work and personal use, i have multiple exchange accts that keep things sorted and seperated.
recently though i have been getting more and more business calls to my cell phone, during and outside of normal business hours.
what im looking for is an app that will take a selective group of contacts/phone numbers/CID strings and if it is a "business" call then forward it to a specific phone number (external number, the actual business line).
I have seen apps on the market and around that will forward calls to voicemail if they match certain filters, but i cant really seem to find an app that will forward to an external number. Any way I could accomplish this?
i figured out how to listen for outgoing calls. however, i can't find any docs or code samples for making a Receiver that catches outgoing sms or email.
View 10 Replies View Relatedpublic final Cursor query (Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) Query the given URI, returning a Cursor over the result set.Parameters uri The URI, using the content:// scheme, for the content to retrieve. projection A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used. selection A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URI. selectionArgs You may include ?s in selection, which will be replaced by the values from selectionArgs, in the order that they appear in the selection. The values will be bound as Strings. sortOrder How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.
View 3 Replies View RelatedIs there a way to listen for outgoing SMS messages in Android? If so, is it possible to prevent the message from being sent?
View 1 Replies View RelatedI am writing a Security-oriented application for Android that is supposed to detect abuse of SMS sending.
In my work I encountered the problem of not being able to detect outgoing SMSs sent not through the use of conventional applications, i.e. merely by using SMS Manager's sendTextSMS method.
The conventional SMS applications add the contents of the sent SMS to the SMS Provider after they send it but I can assume that malicious applications will not do that... and neither will they provide the pending intents to the sendTextSMS method to be broadcast upon sending/ delivery.
My question is, is there any way I can detect the sending of the SMS without relying on the SMS provider?
As far as i know there is no way to detect when an outgoing call is accepted at public API level. I can detect incoming calls (with PhoneStateListener), outgoing calls by NEW_OUTGOING_CALL intent, but i can not find a way to distinguish the dialing and connected phone states.
View 4 Replies View RelatedWe 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.
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...
In android there is a broadcast Receiver for incoming SMS.
but in my application i want to capture outgoing SMS through code it is possible in android. There is no any Receiver for outgoing SMS.
How can i implement to capture outgoing SMS.
Is it possible to notify outgoing sms programmatically?
View 5 Replies View RelatedAny one Help me the coding to get Out going SMS / MMS count in the Android 1.5.
it means my code will know automatically, when the SMS or MSS will be sent from the Mobile.