Android :: Can't Get A Phone Number In My Phone App

Jul 7, 2010

My Android app needs to retrieve information about a contact (namely, phone number and name.) I wrote some code using getContentResolver().query() In the results, I am seeing that the name is being returned, and other information like when I last contacted that person, but not the phone number. What am I doing wrong?

The code:

Log.w("MyApp", "requesting " + phonesUri.toString());
Cursor contactCursor = context.getContentResolver().query(person, null, null, null, null);
contactCursor.moveToFirst(); for (int i = 0; i < contactCursor.getColumnCount(); i ++) {
Log.w("MyApp", contactCursor.getColumnName(i) + ": " + contactCursor.getString(i));}

Android :: Can't get a phone number in my phone App


HTC Incredible :: Google Voice Number Isn't Version Cell Phone Number

May 24, 2010

I'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.

View 31 Replies View Related

General :: Forward Selective CID / Phone Number To External Number

Feb 15, 2012

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?

View 1 Replies View Related

HTC Incredible :: Set Phone To Send Text From Pc Using Cell Phone Not Google Voice Number?

Aug 6, 2010

Is it possible to set it up so I can send a text from my computer using my cell phone # and not my google voice # ?

View 1 Replies View Related

HTC Droid Eris :: Activating Old Phone - Input Phone Number For Activation

Jul 14, 2010

I cracked my screen and got a replacement. I am trying to activate the old phone after I have preformed a factory reset. It asked me to input a phone number for activation. I do not want to do this. what are my options.

View 5 Replies View Related

Sony Ericsson Xperia X10 :: Phone Number Search Facility On Phone?

Nov 15, 2010

Is there a phone number search facility on the Xperia? I know there's a google button to search direct but could do with a numbers rather than a contacts one.

View 1 Replies View Related

Sprint HTC Hero :: Phone Number - Transferred Contacts From My Old Phone

Nov 4, 2009

I transferred contacts from my old phone (Samsung Instinct). One of the numbers was a voicemail for another location. On the Instinct you put in the numbers with a pause in the string which allowed you to delay entry of saved access codes until the right time. Is there a way to do this on the Hero?

View 2 Replies View Related

HTC Incredible : Call A Phone Number Is In Calendar Entry On Phone?

May 7, 2010

Does anyone know a way to call a phone number that is in a calendar entry on the Incredible? This is a feature I used 10 times a day on my blackberry and I can't believe there wouldn't be some way to do it on the incredible. I am a sales rep and when I set up an appointment I put the name of the office and then I type the phone number right next to the name. When I opened the entry on my bb I could then click on the number to initiate a call. The incredible doesn't seem to recognize the phone number as anything different than text..

View 7 Replies View Related

HTC Hero : Phone Number Backup With Names From Phone Onto Computer?

Dec 9, 2009

First Thread on here and new user of a hero so please bear with me!

I have used sync to backup my phone numbers onto my computer but they are appearing in the windows contacts as just the phone numbers but no names.

Is tehre any program i can use to backup my phone numbers with names from my phone onto my computer?

View 9 Replies View Related

Android :: Getting ESN Number Of A Phone?

Jun 25, 2009

Is it possible to get : The ESN Number of a phone The Hardware version The Software version of a phone. Is there any way to get this stuff.

View 5 Replies View Related

Android :: Way To Get Phone Number In SDK Within App?

Mar 19, 2010

Is there a way to get the phone that is running my app's number within the app?

View 2 Replies View Related

Android :: Get Phone Number From Where Sms Is Sended?

Feb 27, 2009

Can anyone tell me how can i get the phone number from where sms is sended. Well i have got the body of sms by this coding. Uri uri = Uri.parse("content://sms/inbox/"); String[] columns = new String[]{"body"}; String[] columns = new String[]{"?????"};

View 2 Replies View Related

Android :: Need To Get Emulator Phone Number?

Aug 12, 2010

I am working on an android application and i want the phone number of the phone i.e the emulator.I know there will be no phone number for emulator.I want to know how to get its phone number. The reason is I want to send sms from the phone.

View 2 Replies View Related

Android :: Getting Contact Name From Phone Number?

Dec 4, 2009

The semi-standard way of getting a contact name from a phone number is to use Contacts.Phones.CONTENT_FILTER_URL and append the phone number, as in the following sample code. This works fine on Android 1.6, but not on 2.0 -- is there a way to perform this function that works in all versions of the Android API? private String getContactNameFromNumber(String number) {// define the columns I want the query to return String[] projection = new String[] { Contacts.Phones.DISPLAY_NAME, // encode the phone number and build the filter URI Uri contact Uri = Uri.withAppendedPath (Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(number)); // query timeCursor c = getContentResolver().query(contact Uri, projection, null,null, null);// if the query returns 1 or more results}

View 2 Replies View Related

Android :: How To Set Phone Number In Emulator?

Nov 1, 2009

It the earlier versions of Android SDK the emulator had the set phone number. Visible in the phone settings and accessible to applications through the Telephony Manager.get Line 1 Number method. In Android SDK 2.0 it is not set. How to set it?

View 3 Replies View Related

Android :: Looking Up Contact By Phone Number

Jul 29, 2010

I am getting contact details for a given phone number using the following code:

Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNum));
Cursor cursor = context.getContentResolver().query(uri,null,null,null,null);

There is a case though when the cursor contains 3 records with the same phone number and display name. Can you please suggest an explanation or possible reason for that?

View 1 Replies View Related

Android :: Look Up Contact's Name From Their Phone Number?

Feb 1, 2010

I am trying to get the sender's name from the contacts database using a content provider. The problem is I don't know how to implement it. Like now I can only pull the phone number from the smsMessage. I need to check to see if the phone number that is calling is in the users contacts first and if it is display the name if it is not then display the number.

View 1 Replies View Related

Android :: Contact From Phone Number - Old Vs New URI?

Aug 5, 2010

I have an Android 2.1 device (HTC Incredible). My app, however, must be compatible with early (pre SDK 5) devices, so I am using the deprecated format of filter URI:

Uri contactUri = Uri.withAppendedPath(Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(number));
Cursor C = context.getContentResolver().query(contactUri , null, null, null, null));


The number is of the form 15555551212. This fails to find the Contact, at least on my device. However, changing to the new (SDK 5 and later) ContactsContract format URI

Uri contactUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));
Cursor C = context.getContentResolver().query(contactUri , null, null, null, null));

results in success. Originally, the corresponding number in the Contact was in the format +1 555 555 5555, but I changed it to exactly match the input number 15555555555 and the old format URI still fails. In both cases, the new format URI succeeds. Does anyone have any thoughts as to why this is the case?

View 1 Replies View Related

Android :: How To Get Number Of Unread Sms In Phone?

Sep 15, 2010

How can I get the number of unread sms in android?

View 1 Replies View Related

Android : Phone Number Placement

Feb 25, 2009

Apparently my home phone number, where my wife and kid are asleep at 7:30, is listed directly under my application. I'm good for customer support. I just prefer, and I would imagine google might agree with this, to take care of people over email.

Does my developer number have to remain there? (The sub text next to the profile page number clearly indicated it would not be distributed to third parties.)

Does anyone have any thoughts on the phone number placement? I think we should have an option there.

View 4 Replies View Related

Android App To Show ID Instead Of Phone Number

Apr 24, 2014

I'm designing an android app. It pairs phone numbers to user IDs and allows you to dial a phone number via the ID by pulling the phone number from a web-server and dialing it with the native android phone application. However I want the native android phone app to show the ID instead of the phone number. Is this possible and how do i achieve it.

This is important because in my environment, the phone number of a contact varies often and the best way to handle this is changing the phone number attached to an ID.

View 2 Replies View Related

Android :: How To Fetch Phone Number / Unique ID?

Jun 25, 2010

I wonder how could I fetch the phone's phone number or an unique id to identify it?

View 5 Replies View Related

Android :: Lookup Corresponding Contact To A Phone Number?

Jul 6, 2009

What I'm trying to do, is to get the corresponding contact to a phone number. It works perfect if the number is stored in the contacts in the following format: +<country code><area code><number> But not all numbers are stored this way. Most are without the country code or with "00" instead of "+". Do I have to parse the number by myself and set up a corresponding WHERE clause for the query, or is there anything I can't find in the internet to get this one done by the framework?

View 4 Replies View Related

Android :: Developer Phone Number Listing

Feb 26, 2010

When I first started publishing Android apps as an indie developer, I posted my phone number on the app's submission page, thinking it would not be listed publicly. When I found out that it was, I removed the number from the app listing. I don't have the resources to handle phone support, and much prefer to handle support via email. Besides, there is no requirement that we provide phone support, as long as we provide support in some way, correct? Anyway, these days I'm getting fewer phone calls, but I'm still getting calls. We are required to list a phone number in our developer profile, but it is stated that this is used for Google to contact us directly in case there are issues. So where are users still getting my phone number, and how can I make sure it's not listed?

View 3 Replies View Related

Android :: Search Contact By Phone Number

Sep 14, 2010

In my app, user writes a phone number, and I want to find the contact name with that phone number? I usually search the contacts like this:Cursor cur = getContentResolver().query (ContactsContract.Contacts.CONTENT_URI, null, null, null, null); But I do this to access all contacts. In this app I only want to get the contact name of the given phone number. How can I restrict the query? Or do I have to go trough all contacts and see if any has the given phone number? But I believe that this can be very slow this way.

View 1 Replies View Related

Android :: Get All Contact's Name Phone Number - Email For 2.0?

Nov 8, 2009

For android 2.0, how to get a list of all contact's phone number and email? I have an app which works fine for 1.6. Now it is broken for 2.0 Droid. If you could point me an example to get all contact info, I really appreciate it. Previously, I used People.Contect_URI. now it is deprecated and return me nothing. I went through samples but failed to find how to do it in 2.0.

View 18 Replies View Related

Android :: Phone Number Contact Format

Apr 25, 2010

In Android I can get phone numbers of all the contacts without any problem. Tha problem is that for most users some numbers are stored as 'local' numbers, meaning that they dont have the country code included. For example, if the user lives in US and he has 2 contacts:

1) John - 555-123-1234 (local) (starting 1 not showing)

2) Jane - 44-123456787 (england phone number)

The question is: How do I get all the numbers in an international format, when some of the numbers doesnt include the country code?

View 2 Replies View Related

Android :: Retrieve Contact Name From Phone Number

Jun 20, 2010

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 Related

Android :: Retrieve Contact Phone Number From URI

Jul 30, 2010

I 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);......................

View 2 Replies View Related

Android :: Access Number Of Phone Book?

Sep 16, 2010

I am trying to implement the phone book for android phone and I want to access the number of the phone book ,I can access only the name that the number save in phone book. way I can access the number .I am using the code for accessing the number is.....................

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved