[android-developers] Re: incomingNumber -> contact name - What is the right way?

2009-06-13 Thread Doug
Reported as bug #2983 http://code.google.com/p/android/issues/detail?id=2983 On Jun 13, 1:34 pm, Doug wrote: > Wow! Turns out the query code in ContactsProvider does pretty much > what I thought... it uses the Sqlite 'glob' operator, which is like > 'like' (but uses '*' as wild-card... which i

[android-developers] Re: incomingNumber -> contact name - What is the right way?

2009-06-13 Thread Doug
Wow! Turns out the query code in ContactsProvider does pretty much what I thought... it uses the Sqlite 'glob' operator, which is like 'like' (but uses '*' as wild-card... which is strange, since phone numbers could conceivably have *'s and #'s in them). Both GLOB and LIKE in Sqlite don't let you

[android-developers] Re: incomingNumber -> contact name - What is the right way?

2009-06-13 Thread Doug
I did some experimentation yesterday on just this topic. For a start, it was easy enough to just throw a non-specific query at the People provider and get back the values for the columns I was interested in. I don't know why, but I found that the "NUMBER_KEY" column has the original phone number,

[android-developers] Re: incomingNumber -> contact name - What is the right way?

2009-06-12 Thread so_is
I would like to add something. I have recognized that the column "NUMBER_KEY" doesn't get updated at all. So I'd like to ask if there is another way to get normalized phone numbers? On 12 Jun., 11:25, code_android_festival_way wrote: > Hello. > > I am using a PhoneStateListener to determine the