Android :: Get Phone Numbers Of Contacts

May 24, 2010

I am new to Android and have been working on an app that needs to get all of the user's contact's phone numbers. Apparently the code I have does not work with the 2.1 SDK. So far here is the code I am using:

String[] projection = new String[] { Phone.NUMBER };
Cursor c = managedQuery( Phone.CONTENT_URI, projection, null, null, null );
int colIndex = -1;
try {
colIndex = c.getColumnIndexOrThrow( Phone.NUMBER );
} catch( Exception e ) {
print( e.getMessage() ); }
print( "Column Index = " + colIndex );
//count is equal to 3
for( int i = 0; i < count; i++ ){
try {
print( c.getString( 2 ) ); //the 2 used to be colIndex
} catch ( Exception e ) {
print( e.getMessage() );} }

It seems that no matter what I pass into c.getString() it keeps telling me that I passed in -1. But I even hardcoded the 2, and it says the same thing. Any help would be much appreciated.

Android :: Get Phone Numbers of contacts


Android :: Transferring Contacts - Phone Numbers Format

Jun 19, 2010

I'm currently a Blackberry 8330 user and will be upgrading to either the Droid X or Droid 2 later this Summer. It will be my first Android phone and I'm looking forward to it! I have one simple question about this transition. I already have a Google account and have all my contacts saved there. I read a post a while back on here that if you don't have your phone numbers formatted in a certain way in your contact list, it may cause issues when transferring them to a new Android phone (multiple entries, missing entries, etc.).

Maybe that wasn't a correct statement, but I wanted to ask the question anyway. Are Android phones picky about phone number formats? For example, should I save them online as xxx-xxx-xxxx or maybe 1-xxx-xxx-xxxx instead? Or should I not save them with any hyphens? I just want a seamless transition of my contacts from my Google account to the new phone without a bunch of re-typing or deleting, etc.

View 1 Replies View Related

Android :: Query All Phone Numbers Of All Contacts In Database

Jun 5, 2009

Can you please tell me how can I query all phone numbers of all Contacts in the Database? Where can I find some examples for that?

View 3 Replies View Related

HTC Desire :: Contacts Not Showing Phone Numbers

Jul 30, 2010

I ve with my HTC Desire. Let me explain : When I go on PEOPLE I see my contacts there , if I click on them I cant see any phone number or mail nothing it just show me the contact name then under the name I see DETAILS then INFORMATION and down I can read ringtone and send to voicemail and then last Edit. Why is that? I dont think is normal and honestly makes me really depressed coz I cant call normally.

View 7 Replies View Related

HTC Hero :: Show Only Contacts With Phone Numbers

Aug 9, 2009

I just installed fatal1ty's hero rom version 1.4 last night on my rogers magic(a version modified for 32a) and I have a couple questions about the different apps. First of all, is there any way to make it show only contacts with phone numbers? Every time I send a message with gmail, that email is automatically added to my contacts but I don't really want to see it there when I'm looking for phone contacts. It makes my list very long. I know I can do this with apps like aContacts but I want to use the HTC contacts app if possible. Second, I was playing some music and then my lock screen wallpaper suddenly decided to change to the album art. I assumed that it was supposed to do this but then after I stopped playing the music it stayed. I then changed the lock screen wallpaper but it did no good. Finally, how do I add words to my dictionary. The keyboard seems identical to the one that I had as a stock rogers magic except the "add word" button has disappeared.

View 8 Replies View Related

HTC Legend :: Contacts - Mainly Phone Numbers - Into Groups

Jun 23, 2010

Ive not found any specific in depth instructions with my phone so here goes my question...I have managed to sync al my email gmail facebook and phone contacts to my handset, I want to put my contacts (mainly phone numbers) into groups so its easier to group SMS people etc, when i try to add contacts to a group it only seems to come up with my Gmail added Email addresses, i have gone into the relevant menu and selected display phone contacts only (or something similar) and re tried but still i am getting just my Gmail addresses as the only option to add to groups. Any help would be greatly appreciated and im sorry if its blurringly obvious!

View 1 Replies View Related

HTC Droid Eris :: Only Display Contacts With Phone Numbers?

Mar 15, 2010

I have the Motorola Droid and my roommate just bought the HTC Droid Eris. He has 1000+ contacts in his Google Account and only wants to display ones with phone numbers. The MOTO Droid does this easily - Dialer > Contacts > Menu >Display Options > "Only display contacts with phone numbers" I'm baffled - the Droid Eris doesn't have this option? Is this an HTC Sense thing or an Android 1.5 thing? And, have any Droid Eris owners found this annoying and found a work around?

View 4 Replies View Related

Samsung Vibrant :: Importing Contacts Only If They Have Phone Numbers?

Aug 8, 2010

Is there any way to import contacts from face book only if they have their phone numbers in their account info? I don't want to have to sort through all of the contacts with no numbers.

View 3 Replies View Related

HTC Desire :: Brackets In Google Contacts Phone Numbers

May 13, 2010

I added a contact on my PC (http://www.google.com/contacts) which then got sync'd to my phone. I pasted the phone number in from a website, which began something like this: "+44 (0)207..." When I dialed the number on the phone, a recorded message told me that voicemail settings had been changed, and to hang up and dial again in five minutes. Immediately, an SMS message arrived from ">pers", saying "Network message - please delete", followed by a load of random gibberish. Looking in the Call History, it appears that the phone ignores the brackets, and dials, "+44 0207..." which is incorrect. It ought to know that numbers in brackets after the country code are only used when dialling locally without the country code. Calling that incorrect number (I don't know if it's the specific number I called, or just that prefix) somehow connected to some aspect of the (T-mobile UK) voicemail system. I wonder what setting I've changed?Googling suggests that the SMS from ">pers" is some sort of phone-configuration message that is normally supposed to be intercepted by the phone. Anyway, bottom line is this - if you add contacts to your Google account on your PC (which is sometimes very convenient, and a great feature of the Google system), be careful to remove any unnecessary area prefixes.

View 2 Replies View Related

General :: Any Way To Copy Facebook Numbers To Phone Contacts

Feb 25, 2013

I got all my Facebook contacts numbers synced and it comes in contacts but its not coming as phone contacts. Only when it comes as phone contacts i can use them in other apps like Viber and Whatsapp. Its not practically possible add and each very number manually (1800 friends ). Is there any way to copy Facebook numbers to phone contacts or likewise?

View 1 Replies View Related

HTC Droid Eris :: Too Many Contacts Deleted - Phone Numbers Missing?

Feb 11, 2010

My fiance and I both got the Eris last week, and we both got our contacts transfered from our old phones (hers was LG EnV Touch). We both had existing Gmail accounts which were setup by the Verizon techs at the store as well. The other day, she started telling me that she was getting this weird message on her phone "Too Many Contact Deletes" or something to that effect. I disregarded it as nothing, and carried on until tonight.

She called me freaking out that all her favorite people in her HTC Favorites Widget were gone, including me, and that my number just showed up when i called her, no name, no picture, just number. So I had her check her People list and she said they were all still there, except that all their Phone Numbers were missing. I quickly logged into her GMail account to confirm, sure enough, everyone was still there, but all the numbers were gone.

I did some research and found a little bit on the error message she got originally, but nothing about random deletion of contacts phone numbers. I still have her LG EnV Touch here with all her contacts, and am contemplating deleting all of her Gmail contacts, all of her Phone contacts and then importing the list into GMail, and syncing with the phone. Is that what you would do? I'm worried that this will happen again. What is this caused by and how does she prevent this in the future?

View 6 Replies View Related

LG Ally :: Can't Edit Contact Phone Numbers For Imported Contacts

Jul 28, 2010

I own a Droid, and consider myself fairly savvy in the Android world, however my wife recently got the Ally and is having a problem editing her contacts. So when she initiqally booted up the phone it walked her through logging into google and facebook, etc, and it imported all those contacts into the phone, however, she wants to add in their phone numbers now, but its not letting her. We click on the menu button, click eedit contact, but then there is no way to edit or add phone numbers.

View 5 Replies View Related

HTC Desire :: Saving Contacts To SD Card Changes Format Of Phone Numbers

Jun 2, 2010

Hi,

After saving my contacts to the SD card, resetting the phone, then importing them all back, the numbers are now in the form of 012-345-67891. Does anyone know how to remove the hyphens?

Thanks

View 3 Replies View Related

HTC Hero :: Phone Adds Facebook Contacts To Unknown Numbers

Aug 30, 2010

Whenever an unknown number texts me, my phone is adding random facebook contacts to those numbers. For example, Orange texted me and it came through as being from this guy who is a friend of a friend who i have on facebook. It adds his name and profile picture to the top of those texts though and it's really annoying. It also started doing it with a second person (totally unrelated to the first), this time for texts from my bank. What i have discovered is that on facebook they both have a line in their info which says 'Mobile Number: " but then no mobile number (shown in the picture below), so i presume they've both put a space there and for some reason my phone has taken this and linked them to these unknown numbers. I've deleted both "Facebook for HTC Sense" sync and "Facebook" sync (not desirable, because i like seeing peoples profile pics and birthdays in my phone contacts), but it still happens. I also tried unlinking the first person from all of the links it had made, but that didn't work either. I have a HTC Hero running 2.1.

View 2 Replies View Related

Motorola Droid :: Way To Print Google Contacts With All Phone Numbers

May 25, 2010

Has anyone figured out a way to print google contacts with all phone numbers?

I see how to print them all one one sheet but it only print one phone number for each contact. some of my contacts have several phone numbers asigned.

verizon back-up sucks so I'm trying to do it with google.

View 5 Replies View Related

Sony Ericsson Xperia X10 :: Add Phone Numbers To Facebook Synced Contacts?

Nov 26, 2010

I lost most of my contacts on update to 2.1. BUT - there is this facebook sync thing that looks really cool.

I tried this, and now, opening my Phonebook shows all my facebook friends with their facebook profile pic, and number (if they have entered one on facebook). Sweet! Less work for me!

BUT - a lot of my facebook friends do not put their number on their profile, so I need to add the number for these Phonebook contacts. However, there seems to be no way of adding a phone number for them; and these people do not appear when I want to select a contact to send a text to? What is that all about? How do you add phone numbers to contacts that were synced in through facebook, so you can then select them when you want to call or text them?

View 1 Replies View Related

General :: How To Move Contacts And Phone Numbers From Excel To Razr Maxx

Oct 1, 2012

Is it possible to move contacts and phone numbers from excell to razze maxx?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Setting Default Numbers For Messages / Phone Calls For Individual Contacts

Sep 6, 2010

Does anyone know if it is possible to set default numbers in my phone for text messages and phone calls for individual contacts, please? I would like to set up the phone so it defaults to mobile phone numbers for text messages, so I don't accidentally try to send a text message to a landline.I have fiddled weith the phone for ages, but haven't yet found the option to do this.

View 5 Replies View Related

General :: Numbers Entered Into Contacts On LG L9 Doesn't Sync To Gmail Contacts Online

May 7, 2013

I've checked my phone's sync settings, synced several times, logged in and out of Gmail online to see if anything has been updated. No such luck. Icon by phone numbers saved on phone is a cell phone, rather than the letter "G" which typically represents contacts pulled from Gmail online. I've had this issue - I believe - with my previous Samsung. Although I've seen this question brought up before, the answers are typically not device specific or have not been useful and clear to follow.

As a new user, I had difficulty negotiating this site and finding the best place to post this. There is not an LG Optimus L9 Forum so, if there is a location where this post might encourage more visibility.

View 1 Replies View Related

Android :: Contacts / Numbers Data To ListView

Mar 31, 2010

Does someone know how to get a 'flat' map / list of the contacts and there phone numbers. I am currently using this to build a datastructure, so I can display it in a lIstView, which is not really fast. The code shows that I do two queries. Would it be possible to do this with one query so that I end up with a just one cursor. The structure ideally would be: contact name number number contact name number

This would then allow me with a custom listView Adapter to display the data and make the names non clickable.................

View 3 Replies View Related

Android :: Display All Contacts With Numbers In One ListView

Apr 8, 2010

I am struggling on how to display all the contacts and all their phonenumbers in one ListView. Because the persons and their phonenumbers are in two seperate dbase tables I need to do two queries. First one, is to get the user _ID the second one is lookup the phones tabel and based on that _ID get the numbers. Using a Cursor and a ListActivity with a single query is not that difficult, but what to do in this case where I need to do sub queries. I tried building my own datasctructure, but that is to slow and to expensive to do every time. How do I go about this. The end result would look like this, where each number is separately click-able.

View 6 Replies View Related

Android :: Contacts Api Which Import Names And Numbers Form Phonebook?

Oct 1, 2010

I use all the Contact Example in my android Emulator but it is not displaying phone numbers, it only displays names, so can u just give me one example of android Contacts api which import names and numbers form phonebook.

View 1 Replies View Related

HTC EVO 4G :: Contacts With Multiple Numbers

Jul 6, 2010

How do you choose/cycle through your contact's different phone numbers while on the phone screen. I know when i had the Hero I would just use the scroll bar and roll it right/left to go through the contact's other numbers.

View 3 Replies View Related

Nexus :: Syncing Contacts And Numbers

Feb 23, 2010

I have a ton of Facebook contacts that I synced into my contacts list. However, not all of them list their phone number on their facebook. When I try to add a number, it says "Facebook contact information is not editable on this device". How can I add a number to a contact synced through Facebook?

View 1 Replies View Related

HTC EVO 4G :: Facebook Messages From Contacts Numbers

Jul 4, 2010

I have my Facebook contacts linked to my phone. But when a comment, post, or message is received by my phone it's listed as a number. These messeges are not listed under that contact but they are in the general list of messages received. When i try to save the post/message to my contact it creates a new phone number for that person. For example, when i get notified of a comment my Facebook contact puts up, it is listed as coming from 3266518 ...then 519 and so on instead of being tied to that person. When i try to save it to that person it saves it as an additional phone # for that person. I have notifications setup on Facebook and my contact linked to Facebook. Are these two different things?

View 2 Replies View Related

HTC EVO 4G :: Changing Primary Numbers In Contacts

Jun 24, 2010

I transferred my list of contacts to my Evo, but the primary numbers got screwed up in the transfer. How do I change the primary number in a contact from, like their home number to their cell number?

View 2 Replies View Related

KitKat 4.4 :: Contacts With Multiple Numbers

Apr 12, 2014

Many of my contacts have multiple phone numbers. When I receive a text from someone is there any way to differentiate which one they are texting from? For example, I usually send texts to my wife from my mobile, but sometimes I will send them from my tablet through google voice, which has a different phone number. She added my Google Voice number to my contact so she will recognize it. Both numbers show up as a different thread and if she responds it will go to the correct device. The problem is that she will open up her text app and pick my thread out of the list, but there's no way to tell which device she is selecting, so she will send texts to my tablet instead of my phone and I won't get it. I told her to create a completely different contact for the Google Voice number so she will know the difference. This works, but she doesn't want two separate contacts for me. It is kind of annoying that the contacts allows you to enter multiple numbers for the same person but doesn't differentiate which one is being used. Is there any way to get the text app to show which number the text is coming from on contacts with multiple numbers?

View 1 Replies View Related

Android :: Change Incoming Call Screen For Unknown Numbers And Contacts Without Photos?

Sep 21, 2010

Is there any way to change the incoming call screen for unknown numbers and contacts without photos? The little robot (foryo or whatever) is a cute logo.. but it looks like a waving dildo.. Often times I have to answer calls in front of customers, family and friends. It's a little embarrassing having to pull a noisy, illuminated, vibrating green dildo out of my pocket every time I get a phone call.

View 5 Replies View Related

HTC Droid Eris :: 2.1 Contacts - Can't Delete Numbers

May 15, 2010

Got 2.1 from download site. Installed, missing HTC widgets, did a Factory Reset and they all came back.
My problem now is, I can't delete certain numbers from contacts. For instance, my girl friend's number has "411" as her primary number (not sure how that happened). It wont let me delete it from her contacts card now :*(

View 1 Replies View Related

HTC Desire :: Contacts American Style Numbers

Aug 9, 2010

After resetting my phone, i restored the contacts list, resulting in my contacts having numbers in the format (000)-999-8888 or similar. Is there an app or a workaround to restore them to British format?

View 3 Replies View Related







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