Guest User

Untitled

a guest
Jan 12th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Android: Failure delivering result ResultInfo. What is wrong?
  2. String selection = ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME
  3. + " like'%" + name + "%'";
  4. String[] projection = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER };
  5. Cursor c = context.getContentResolver().query(
  6. ContactsContract.CommonDataKinds.Phone.CONTENT_URI, projection,
  7. selection, null, null);
Add Comment
Please, Sign In to add comment