Hello.... Can anyone please comment????
Regards, Sukumar. On Mon, Jun 14, 2010 at 7:07 PM, sukumar bhashyam < [email protected]> wrote: > hi, > > My app needs contacts id, display name and phone number in a single query. > I see legacy uri android.provider.Contacts.Phones.CONTENT_URI suits me the > best. For some reasons query on this uri return me 0. > > I looked into the LegacyApiSupport.java, legacy PHONES table is mapped to a > view (view_v1_phones). I pulled the Contacts2.db and found that > 'view_v1_phones' is valid and its listing the data as I needed. > > If view_v1_phones is valid, why does my query fails???? Below is the code > snippet I have used... > > Cursor resultPhone = > getContentResolver().query(android.provider.Contacts.Phones.CONTENT_URI, > null, null, > null, null); > if(resultPhone != null && resultPhone.getCount() != 0) { > //printResults( resultPhone ); > }else { > if(resultPhone == null) > Log.i("suku","cursor null"); > else > Log.i("suku","results 0"); > } > > > Can I get contacts id, display name and phone number in a single query > using ContactsContracts? > -- 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

