i went through this also. i can't find the thread for it now, but i
recall that the answer was that you need to do it differently in 1.5 vs.
1.6+. having #IFDEF flashbacks? it looks like you can get the SDK
version wit the Build.VERSION class.
sorry i can't point you to the code snippets.
On
I'm still facing a problem by simply accessing the phone's contacts!
The following works on all API levels (1 to 6) apart 5 (which is
Android 2.0):
getContentResolver().query(People.CONTENT_URI, null, null, null,
People.DISPLAY_NAME);
Any suggestion to let it work on API level 5?
Best,
Andrea
Please be more specific: we all know there were some issues with the
2.0 SDK, which is why we released the 2.0.1 version of the SDK. So
the real question is: does your code work on real Droids? It's
expected to. However! Using the People.CONTENT_URI on a 2.0 phone is
a really bad idea: that
Sorry for being away...
I managed to get it to work, however I complain with the approach used
in developing the API! Apparently, searching for a contact based on
the phone number has changed in Android 2.0 and the old good way of
doing that isn't working anymore (Why). I agree that now
Take a look at this sample app that makes use of both old and new APIs:
http://code.google.com/p/android-business-card/source/browse/#svn/trunk/android-business-card/BusinessCard/src/com/example/android/businesscard
In the redesign of the Contacts API we had several goals: add support
for
But what about the
java.lang.IllegalArgumentException: Unknown URL
content://com.android.contacts/phone_lookup
???
On 3 déc, 04:09, Bonifaz bonifaz.kaufm...@gmail.com wrote:
Thank you Dmitri,
this answer saves me a lot of time.
On Dec 2, 12:41 am, Dmitri Plotnikov dplotni...@google.com
Hey Dmitri --
My app *is* reading FB names/numbers! Is this an indirect feature on
account of them being imported/sync'd?
Peace,
Scott
On Dec 1, 11:41 pm, Dmitri Plotnikov dplotni...@google.com wrote:
Just to clarify the Facebook question: the FB contact data is not visible to
any
Just to clarify the Facebook question: the FB contact data is not visible to
any applications except a handful of built-in apps like Contacts. That's a
policy decision by Facebook.
At the same time, any application can read and write data from all other
types of accounts, including Google and
Thank you Dmitri,
this answer saves me a lot of time.
On Dec 2, 12:41 am, Dmitri Plotnikov dplotni...@google.com wrote:
Just to clarify the Facebook question: the FB contact data is not visible to
any applications except a handful of built-in apps like Contacts. That's a
policy decision by
I still don't know how to query Facebook contacts and their phone
numbers.
Could please someone give me a hint about this. If I query
Contacts.CONTENT_URI, it returns all contacts but not Facebook
contacts.
--
You received this message because you are subscribed to the Google
Groups Android
So I am trying to use new contacts API to query for contacts that has
phone number.
resolver.query(
ContactsContract.Contacts.CONTENT_URI,
new String[]{ContactsContract.Contacts._ID,
ContactsContract.Contacts.DISPLAY_NAME,
ContactsContract.Contacts.LOOKUP_KEY},
They added support for multiple accounts (woot). However as contacts
are by account something had to give ...
--
RichardC
On Oct 30, 6:40 pm, nEx.Software email.nex.softw...@gmail.com
wrote:
Hold up... I'm confused. Are you saying that Contacts portion of the
SDK is deprecated? Whatever
12 matches
Mail list logo