Could you paste the exact query() that is returning empty for you? Since all data is now stored in a single table you should be able to query on Data.CONTENT_URI and filter by Data.MIMETYPE to match the two types you're looking for.
j On Sun, Nov 8, 2009 at 7:52 PM, Henry <[email protected]> wrote: > For android 2.0, how to get a list of all contact's phone number and > email? > > I have an app which works fine for 1.6. Now it is broken for 2.0 > Droid. If you > could point me an example to get all contact info, I really appreciate > it. > Previously, I used People.Contect_URI. now it is deprecated and return > me nothing. > I went through samples but failed to find how to do it in 2.0. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Jeff Sharkey [email protected] -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

