title: getContentResolver().delete doesn't work
body: <p>I'm trying to delete a specific contact! I've searched a lot, but every code I try doesn't work!</p>
  
  <pre><code>public void delete(String name,String numero)
  {
  Cursor cur = getContentResolver().query(Contacts.CONTENT_URI,null, null, null, null);
  
  while (cur.moveToNext())
  {
      try
      {
          String[] selectionArgs=new String[]{String.valueOf(numero)};
          String lookupKey = cur.getString(cur.getColumnIndex(Contacts.LOOKUP_KEY));
          Uri uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey);
          getContentResolver().delete(uri, Phone.NUMBER +"=?", selectionArgs);
      }
      catch(Exception e)
      {
         System.out.println(e.getStackTrace());
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I also tried this instead of specifying selectionArgs but nothing</p>
  
  <pre><code>getContentResolver().delete(uri, Contacts.DISPLAY_NAME +"="+ name, null);
  </code></pre>
  
  <p>and tried to change <code>Contacts.</code> with <code>ContactsContract.Contacts.</code> but nothing
  and yet tried deleting with the Contact displayname instead of number.
  It seems that selection doesnt work! The uri value is <code>Uri$HierarchicalUri</code> is this right?</p>
  
  <p>What's the issue?</p>