hello all

  I am trying to implement the phone book for android phone and I want
to access the number of the phone book ,I can access only the name
that the number save in phone book .

please tell me by what way I can access the number .I am using the
code for accessing  the
 number is


   private Cursor getContacts() {
                // Run query
                Uri uri = ContactsContract.Contacts.CONTENT_URI;
                String[] projection = new String[] { BaseColumns._ID,
                                ContactsContract.Contacts.DISPLAY_NAME,
ContactsContract.Contacts.Data.DATA4};
                String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + 
" =
'"
                                + (mShowInvisible ? "0" : "1") + "'";
                String[] selectionArgs = null;
                String sortOrder = ContactsContract.Contacts.DISPLAY_NAME
                                + " COLLATE LOCALIZED ASC";

                return managedQuery(uri, projection, selection, selectionArgs,
                                sortOrder);
        }



thanks a lot

-- 
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

Reply via email to