Android :: Accessing Contact Phone Numbers - Corresponding ID

Oct 30, 2009

I'm trying to adapt my application (Personalytics) for the brand new Android 2.0, however I'm facing an issue while accessing contacts' phone numbers. What I need to do is to retrieve the name associated to a stored contact based on his/her phone number. At present I'm doing this in two steps:
1) from a phone number I get the corresponding ID of the stored contact (if present)
2) I retrieve the contact's name based on that ID

I managed to use the correct CONTENT_URI for reading contacts by using reflection to be fully compatible with Android 2.0 (ContactsContract.Contacts.CONTENT_URI) and the previous versions (People.CONTENT_URI). Now I'm trying to do the same for Phones.CONTENT_URI (Android <= 1.6) and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0) which is needed by step 2) mentioned above. But as soon as I try to get a contentResolver by using ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following exception:
java.lang.IllegalArgumentException: Unknown URL content://com.android.contacts/phone_lookup

This looks really strange to me, since it should be correct (it is part of the official API)! Moreover, I tried to look at the "API Demos" project, in particular to the classes:
com.example.android.apis.view.List2 com.example.android.apis.view.List3
which are still using the deprecated People.CONTENT_URI and Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of course I have sample contacts in the emulator). Is there another approach I can use to get the name of a contact based on one of his/her numbers? (This must work on all versions of Android).

Android :: Accessing Contact Phone Numbers - Corresponding ID


Android :: How To Get Facebook Numbers Into Phone's Contact List?

Jun 19, 2010

I'm new to the android OS and I got a Hero two days ago. Is there anyway to get all my facebook numbers into my people list? I have the facebook phonebook link on my homescreen with the my contacts with their numbers but they are not in my people list so i cant directly send a text from the facebook phonebook I can only call, so is there anyway to merge/import to my people list on the phone.

View 6 Replies View Related

Android : Having Duplicate Contact Phone Numbers In Handcent SMS

Oct 11, 2010

I think this is a Handcent issue because I'm not really seeing it in the default app. For some reason I get multiple numbers for a contact when sending a SMS- the same number! I have one contact that when I select to send an SMS to, I get 7 options to choose to send to, and guess what, all 7 are the same phone number. And its not a format issue, it still duplicates if the number has brackets over the area code or just dashes. Not sure what to do and when I go into the individual contact (using People) the number is only listed once.

View 3 Replies View Related

Android :: Accessing Contact Data Base For Adding / Deleting / Updating Contact Using Native Code

Dec 15, 2009

I want to add,delete,update android Contact Database using native c code. please tell me how to do if any one have done it.

View 3 Replies View Related

Android :: Read Phone Numbers With Full Contact Data

Aug 17, 2010

I want to collect phone numbers from phone with last-name and first-name (for sorting purpose). How can I achieve that in the simplest way? Is it possible with one query? And I need both versions: for pre 2.0 SDK and later to be compatibile.

View 1 Replies View Related

Android :: How To Launch Contact App Displaying Multiple Phone Numbers?

Apr 3, 2010

I am able to launch contact application from the following way. I am also able to show Name and only one Phone number. My problem is 1- How can I show multiple phone number [like Home, Mobile, Work etc] when I am launching contact application. How can I do that? 2- In Contact application there is one option *More*, which is an expandable list. When I click that it open with other many fields like Notes, Website, Nicknam etc. How can I fill those fields while launching the Contact application? Code...

View 8 Replies View Related

HTC Incredible :: Messages Contact List - Only Phone Numbers?

Apr 29, 2010

Just got my Incredible and it is rocking. Damn this thing is fast! I notice that when I try to compose an sms message, the contact search list contains ALL of my contacts (phone + Google). This is super annoying, as I literally have thousands of Google contacts and some people have numerous accounts, so it's incredibly difficult to sort through and is honestly the first thing I have seen the phone start to choke on. The 'People' widget has a 'View' setting that allows me to limit by just phone contacts, but I can't seem to find any sort of filter in the search when I'm composing a message. I can type each name individually and select, but having a big list would be nice. Again, I'd like to be able to select message recipients from a list containing only phone contacts.

View 1 Replies View Related

HTC Desire :: Set Mobile Numbers As First Phone Number For Contact?

Sep 27, 2010

Some contacts have different phone numbers. And when I send group SMS, the message is sent to the first number of the contact. So is there a software that can reorganize the position of the phone numbers? So that the mobile numbers are the first in the list.

View 1 Replies View Related

Samsung Vibrant :: How Do You Add Multiple Phone Numbers To Contact

Aug 22, 2010

I've searched but haven't found and answer to adding multiple phone numbers to a contact, for example home, cell, work, also how do you join a contact on the phone with the facebook contact info?

View 2 Replies View Related

HTC Tattoo :: Can I Import My Facebook Contact's Phone Numbers

Jan 14, 2010

So i was quite surprised to see that the facebook integration on the tattoo doesn't extend to importing Facebook Contact's phone numbers.

and the only way i know of to get them is through adding a 'live folder' to the homescreen through the official facebook app found on other android phones but not the tattoo Any ideas?

View 5 Replies View Related

HTC Wildfire :: Store Multiple Phone Numbers In Single Contact

Aug 7, 2010

HTC wildfire: how to store multiple phone numbers in single contact?

View 1 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

Samsung Moment :: Possible To Change Order Of Phone Numbers For Contact?

Dec 27, 2009

Title pretty much says it all. The contact for my wife has about 8 numbers listed. I want to re-order how they appear -- e.g. move the 5th number to the top position. Other than re-enter all the numbers, is there a way to easily re-oder them?

View 11 Replies View Related

HTC Hero :: Multiple Emails Adds / Phone Numbers For One Contact?

Dec 28, 2009

My apologies if this has been discussed before, I searched through a number of threads but didnt find any answers.Just got my Hero for xmas and have been playing around with it, and wanted to know if there is any way to assign several emails/phone numbers to a single contact entry?

View 2 Replies View Related

HTC Hero :: Add Phone Numbers From Missed Calls To An Existing Contact?

Oct 16, 2009

Don't see a way to do that when I go to call history. What the hell? The only thing there is add a new contact but that's not what I want.

View 13 Replies View Related

HTC Droid Eris :: Not Displaying Contact Name In Recent Calls - Only Phone Numbers

Jan 9, 2010

My Eris has always had issues with knowing who is who in my recent calls, texts and in google voice from time to time. I reformatted all the contacts to +1-555-555-5555 format(something that someone on a google forum suggested) but it still doesn't fix the problem. For instance- A friend named Steve called me. I see incoming call from and it knows who steve is and says "Incoming call from Steve". I called him back, clicking on the exact icon in my missed calls that says his name and it says I called 5551231234 (unknown). This happens in my messages as well, and it is starting to drive me crazy. I will get a message from 5551231234 and it will only list the number and not the name, so I have no idea who is texting me. For some reason my phone is incapable of putting it together to figure out that the number it lists as unknown is already a contact in my contacts. I have to always call people back to figure out who it is or send a text asking who they are.

View 1 Replies View Related

Motorola Droid X :: Contact List Customization - Show Only Added Phone Numbers

Sep 12, 2010

I am still in the process of learning and customizing this phone so there may be a famous app that takes care of this but I did a search and found nothing. I am not a big fan of how the contact list shows friends from facebook/gmail/Phone. I only want it to show contacts that I have personally added on my phone. Is there a way I can arrange this. I have it to where it remembers phone contacts only when I hit contacts but as soon as restart, it goes right back to all contacts. It also comes up when I try to text someone or in the contact section of the dialer. I just dont like this. I don't mind that they are there, persay, but I don't want it to be default all the time. Is there a way to change this?

View 8 Replies View Related

Android :: Android Check Phone Numbers Present In Contact List?

Aug 17, 2010

I make a Broadcast Receiver to receive Phone number of the person who call me
<intent-filter>
<action
android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
1/How to check if the phone number receive is on my contact list ?
Do you have a tip to know if this phone number exist on contact list with out loading contact list ?
I don't want more information, just if this phone number exist.
2/if it's not possible, and i must load contact list, how to do it on Broadcast Receiver? When i try to do getContentResolver, it's not working because i'm on Broadcast Receiver and not inside Activity.

View 2 Replies View Related

Android :: Accessing Contact Email Addresses

Mar 18, 2009

Post subject: Accessing contact' email addresses Hi! I'm developing an application in which I need to display user a list of contacts and their email addresses so that user can choose one of them. I've got some help from Internet and I'm able to display a list of contacts and their number by the following code

View 2 Replies View Related

Android :: Accessing Contact And Account Database

Sep 21, 2010

How can i access the contact and account manager with the help of sqlite3 code? can u please explain me about contact application?

View 2 Replies View Related

Android :: Display Contact Names Without Visible Numbers

Nov 19, 2010

Is there any way to display contact picker that has both number and contact name? Now I'm calling picker: startActivityForResult(new Intent Intent.ACTION_PICK,Contacts.Phones.CONTENT_URI),1);

But in a result I get only Contact names without visible numbers. To make things worse, if one contact has two numbers it occurs twice.

View 1 Replies View Related

Android :: Code To Get All Numbers (telephone) Of A Contact In Droid 2.1?

Jun 8, 2010

Anybody has a code snippet where I can get all the numbers (telephone) of a contact? (in android 2.1).

View 2 Replies View Related

Android :: Send Message To Numbers Stored In Contact Of Device

Sep 1, 2010

I have made app which allows me to send message to multiple user from my device. Now i want to send message to the person which are stored in My Contact list. So i want to retrieve phone number from my contact list and then i should be able to send message to that particular number Any hints how can i go further.

View 1 Replies View Related

HTC Desire :: Extracting Contact Multiple Numbers From Sim

Jul 20, 2010

Sorry I am a bit of a newbie on phones.I kept with my Motorola 1000 till I got a Desire. On this phone on the SIM card I could store several numbers for each contact/person.I swapped the SIM card into the Desire, and all the first number for each contact is there, but I can find no way to access the other numbers e.g. landline that I had against each contact/person.Does anyone know where I am going wrong?

View 8 Replies View Related

HTC Desire :: Add Custom Labels On Contact's Numbers?

Jul 13, 2010

As above really. How can I add custom labels for people's numbers? Home, work, Home fax etc are not enough. I need to create my own. Is it possible? Thanks!

View 28 Replies View Related

HTC Droid Eris :: Multiple Numbers For Contact

Mar 1, 2010

When I bring up the list of contacts in the Phone app (not the People app) it shows left and right arrows. However, they don't do anything.So if I want to use a different number for a contact (ie home vs cell) I have to actually hit the Rolodex icon and then select the number.I n every other phone I've had one could always select which number to call. Of course there is always the default number chosen when first setting up the contact.So how does one do this from the list in the phone app?

View 1 Replies View Related

HTC Incredible :: Contact Favorites (multiple Numbers)

May 12, 2010

After playing with my Incredible for many many many hours, just found a really sweet trick.In the favorites widget i have people with multiple numbers(cell, phone), and when you click on that person it calls the primary number, but last night i found that if you click the actual name of the contact(right under the actual pic) a detail properties pop up for that contact and from there you can callsmsemail the person via other numbers.now back to looking for more cool things

View 6 Replies View Related

HTC Incredible :: Random Numbers In Contact List?

Jul 30, 2010

Earlier I tried to send a note from the "Notes" app to a contact. When my contact list appears I see a list of numbers, rather than the actual names of my contacts.

View 3 Replies View Related

HTC Desire :: Adding Two Different Numbers From Same Contact In Group?

Jul 15, 2010

Today I set up a group on my desire so that I can send a group text or email to the parents of the kids football team that I help to run. It seem that it uses the primary number that's selected in the persons contact info. Some parents have given me both their mobile numbers and sometimes two email addresses so I want to include them all in the same group. Does anyone know how I can do this? On my previous blackberry curve 8900 I could select multiple numbers/email addresses from the same contact to go into the group.

View 1 Replies View Related

HTC Incredible : Handcent SMS Contact Numbers Apear Itself?

Aug 26, 2010

After one of the recent handcent updates, I entered a number to send a text message. This number was not in my contacts. I entered the number, and it changed the number at the top to a persons name, who isn't in my contacts, and does not have the same number. They are my friend on facebook however. Is handcent linking with facebook? How do I turn this off? It's telling me this conversation is with the wrong person as of now, and I don't know if it's even sending to the right number.

View 1 Replies View Related







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