views:

73

answers:

1

This question1 describes a way how to show list of phone numbers and select one of them if my app needs a phone number. But image if I have a huge contact list, it is not enough to just show list but possibility for filtering (by contact's name) is also needed. Is there a standard way to show phones list with picking possibility and with filtering possibility? (I wouldn't like to invent my own)

Is there a solution for the problem for sdk 2.0 and lower?

A: 

You should use ContactsContract.Contacts and then the Flag CONTENT_FILTER_URI.

Roflcoptr
I guess this will not work for Android 1.5. Is there a good approach for 1.5?
Solvek
no this is only 2.0 and above. you didn't mentioned that you need it for 1.5 and above. sorry.
Roflcoptr
This article (http://developer.android.com/resources/articles/contacts.html) contains some details including how to support old and new api.
Solvek