hi,

I need to check for phoneBook empty case. To check this, Im using the
below code. Can someone please confirm am I doing it right?


Cursor c = this.getContentResolver().query(People.CONTENT_URI, null,
null, null, null);

if(c.getCount == 0)
 /// No cotacts in DB
else
  Contacts on Phone

Regards,
Sukumar.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to