Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cursor cursor = Cursor cursor = this.getContentResolver().query(
- Uri.parse("content://com.android.contacts/data/5"),
- new String[]{Contacts._ID, Contacts.DISPLAY_NAME, Phone.NUMBER}
- , null, null, null);
- try {
- if (cursor.moveToFirst()) {
- Log.d("Show Display name :", cursor.getString(1));
- Log.d("Show number: ", cursor.getString(2));
- }
- } finally {
- cursor.close();
- }
- }
- Show Display name : 4kgjtmw Gkgjtj
- Show number: 4kgjtmw Gkgjtj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement